-
Hi All:
Well, the Subject pretty much says it all -- I would like to know if HTML-based Help can be integrated into VB5 and, if so, how do I do it? It's pretty easy to hook into standard .HLP files in VB5, but I haven't a CLUE (or the requisite documentation!) about hooking into HTML-based Help.
Please, someone, shed some light on this burning issue!
Thanks!
Jon
-
You could ShellExecute the html file from vb and will be shown in default browser
-
True, I could certainly shell out, but how would that get me to the appropriate help topic? Is there no way to integrate this "new and improved" help system with VB5?
Jon
-
J
Try these:
Code:
Public Const HH_DISPLAY_TOPIC = &H0
Const HH_SET_WIN_TYPE = &H4
Const HH_GET_WIN_TYPE = &H5
Const HH_GET_WIN_HANDLE = &H6
Const HH_DISPLAY_TEXT_POPUP = &HE
Const HH_HELP_CONTEXT = &HF
Const HH_TP_HELP_CONTEXTMENU = &H10
Const HH_TP_WM_HELP_MENU = &H11
Declare Function HtmlHelp1 Lib "hhctrl.ocx" Alias "HtmlHelpA" (ByVal hwndCaller As Long, _
ByVal pszFile As String, ByVal uCommand As Long, ByVal dwData As Long) As Long
Declare Function HtmlHelp2 Lib "hhctrl.ocx" Alias "HtmlHelpA" (ByVal hwndCaller As Long, _
ByVal pszFile As String, ByVal uCommand As Long, ByVal dwData As String) As Long
retrn = HtmlHelp1(0, "C:\Temp\Help.chm", HH_DISPLAY_TOPIC, 0)
retrn = HtmlHelp2(0, "C:\Temp\Help.chm", HH_DISPLAY_TOPIC, "My_Help.htm")
These let you call a compiled HTML help files and display a topic using either a reference number (htmlhelp1) or using the name of a file (htmlhelp2)
Hope it helps
:cool:
Dan
-
Thanks, Dan -- that seems to be EXACTLY what I need! (Oh, if only I'd looked at the MSDN Library first, I could have spared everyone my stupid question . . . .)
Jon