用哪一个API函数可以调用.hlp文件?谢谢大哥哥们!在线等待!

解决方案 »

  1.   

    Private 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
    Const SW_SHOWNORMAL = 1
    Private Sub Form_Load()
        
        ShellExecute Me.hwnd, "open" , "c:\test.hlp", vbNullString, vbNullString, SW_SHOWNORMAL
    End Sub
      

  2.   

    Private 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
    Const SW_SHOWNORMAL = 1
    Private Sub Form_Load()
        
        ShellExecute Me.hwnd, "open" , "c:\test.hlp", vbNullString, vbNullString, SW_SHOWNORMAL
    End Sub
    其实不用 api 也可以
    用shell
     
    Shell Path, vbHide