我做了一个帮助文件。
在VB中想调用它请问怎么做啊??
这样它报错。Shell ("c:\图书管理系统\图书管理系统\图书销售系统帮助文件.chm")
这样也不行。Shell (App.Path & & "\图书销售系统帮助文件.chm")
请问应该怎么做啊??
在线等有正确答案就结贴。
在VB中想调用它请问怎么做啊??
这样它报错。Shell ("c:\图书管理系统\图书管理系统\图书销售系统帮助文件.chm")
这样也不行。Shell (App.Path & & "\图书销售系统帮助文件.chm")
请问应该怎么做啊??
在线等有正确答案就结贴。
解决方案 »
- Winsock1_ConnectionRequest(Index As Integer, ByVal requestID As Long)服务器如何只向这个客户端发送数据呢?而不是广播式的发信息
- 如何创建一个command window
- 搞不清楚怎么回事?大家帮我看看哪里出错了?
- 一个很不错的学习资料网站,有很多教学视频资料下载,晚了就没了.
- 请教高手:怎么才能在sql语句里面使用变量?
- CANCEL按钮不响应,急呀!
- 请问如何将整个目录结构放到sourcesafe中去?我现在的一个ERP软件的子目录太多了。
- 谁有用VB编写小游戏的论文啊?、
- 步步高
- VB6 DDE在两个程序间通讯,Win7 32位系统正常, WinServer 2016 出错
- 急问:VB和数据库
- 有关COM缓存(不知道说法合适不)的问题,
shell "hh.exe " & App.Path & "\图书销售系统帮助文件.chm", vbNormalFocus
Declare Function htmlhelp Lib "hhctrl.ocx" Alias "HtmlHelpA" (ByVal hwnd As Long, ByVal lpHelpFile As String, ByVal wCommand As Long, ByVal dwData As Long) As Long
在VB中使用语句如下
Dim m_Value As Long
m_Value = htmlhelp(form1.hwnd, "这里是帮助文件的路径", 0, 0)
If m_Value = 0 Then MsgBOX "无法打开帮助文件!"
End If
A = ShellExecute(0, "open", App.Path & "\help.chm", "", "", SW_SHOWNORMAL)
模块:
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) _
As Long
Public Const SW_SHOWNORMAL = 1^_^
在VB中使用语句如下:
Dim m_Value As Long
m_Value = htmlhelp(form1.hwnd, "这里是帮助文件的路径", 0, 0)
If m_Value = 0 Then MsgBOX "无法打开帮助文件!"
End If