Results 1 to 3 of 3

Thread: RoboHELP problem- Problems calling HTML Help

  1. #1

    Thread Starter
    Lively Member Nator's Avatar
    Join Date
    Nov 1999
    Location
    East Larryville, GA
    Posts
    80
    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.

  2. #2
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337
    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

  3. #3
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337
    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,



    Dan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width