Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HtmlHelp API

Status
Not open for further replies.

Tuan3249

Programmer
Aug 13, 2001
30
US
I'm having trouble calling this function. I've got the declaration as follows:

Code:
Const HH_DISPLAY_TOPIC = &H0
Const HH_HELP_CONTEXT = &HF


Private Declare Function HtmlHelp Lib "HHCtrl.ocx" Alias "HtmlHelpA" _
   (ByVal hwndCaller As Long, _
   ByVal pszFile As String, _
   ByVal uCommand As Long, _
   dwData As Any) As Long

And I'm calling it as:

Code:
    strPath = RegistryAccess("HKEY_LOCAL_MACHINE\Software\ML\MySoft\App Path",1, "", "")
    
strPath = IIf(Right(strPath, 1) = "\", strPath & "MyHelp.chm", strPath & "\MyHelp.chm")
    
    Call HtmlHelp(Me.hWnd, strPath, HH_HELP_CONTEXT, 165000)

However, nothing happens after this. Theres no error and no message is displayed. It just does nothing at all. Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top