-
Has anyone here ever used RoboHELP? I've been trying for a few days now, with absolutely no luck, to implement a help system into an app. I have no problems calling the help module for search, index and contents. I'm having all kinds of problems when I want to call a specific topic. Blue Sky's web site was absolutely no help. I keep getting a message box saying "HH_HELP_CONTEXT called without a [MAP] section". I tried the tutorials, examples and tips, but I am getting no where fast. I walked through the RoboHELP steps to creating a map file but nothing is working. Any help would be greatly appreciated.
-
This is relatively easy to work around (I couldn't get the map context IDs to work either). The solution is to redclare your HtmlHelp api function a la:
Instead of (say):
Code:
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 it as:
Code:
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
The difference being thin the type of the last argument.
You can then call your HH control with the name of a .htm or .html file that you have compiled into your .chm file thusly:
Code:
Dim retrn As Long
retrn = HtmlHelp2(0, "C:\Temp\MyHelp.chm", HH_DISPLAY_TOPIC, "TheTopicTo Display.htm")
Not as elegant maybe - but it does work!
Hope this helps,
:cool:
Dan
-
This is relatively easy to work around (I couldn't get the map context IDs to work either). The solution is to redclare your HtmlHelp api function a la:
Instead of (say):
Code:
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 it as:
Code:
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
The difference being thin the type of the last argument.
You can then call your HH control with the name of a .htm or .html file that you have compiled into your .chm file thusly:
Code:
Dim retrn As Long
retrn = HtmlHelp2(0, "C:\Temp\MyHelp.chm", HH_DISPLAY_TOPIC, "TheTopicTo Display.htm")
Not as elegant maybe - but it does work!
Hope this helps,
:cool:
Dan