Rich
2003-08-22 07:54:04 UTC
In VB6, I'm having a problem loading a .chm file using the API.
If you press F1, the help file will load. But it will NOT load if you
call the API, until after you have pressed F1... its like it isn't being
initialized until you hit F1. And I even tried LoadLibrary but that
still doesn't work.
Public Declare Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" _
(ByVal hwndCaller As Long, ByVal pszFile As String, _
ByVal uCommand As Long, ByVal dwData As Long) As Long
Public Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA"_
(ByVal lpLibFileName As String) As Long
If you press F1, the help file will load. But it will NOT load if you
call the API, until after you have pressed F1... its like it isn't being
initialized until you hit F1. And I even tried LoadLibrary but that
still doesn't work.
Public Declare Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" _
(ByVal hwndCaller As Long, ByVal pszFile As String, _
ByVal uCommand As Long, ByVal dwData As Long) As Long
Public Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA"_
(ByVal lpLibFileName As String) As Long