VB6 Help files & Context IDs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    VB6 Help files & Context IDs

    Hi!

    I hope that someone here has developed a help file for a VB6 control before.

    I have created a help file (.chm) and have been trying (for some time now) to add Context IDs to my help.

    Context IDs have already been assigned to each function in my VB6 component so that help for its functions can be displayed when a developer hits F1 while using Visual Studio 6.

    I keep receiving the following error message while testing to make sure my help file is context sensitive for a function:

    HH_HELP_CONTEXT called without a [MAP] section

    If I'm highlighting the parameters of the function, I receive the following error:
    the MSDN collection does not exist. Please reinstall MSDN.


    I have a [MAP] and [ALIAS] section in my .hpp file, so I'm not sure why I'm getting the error.

    My .hpp file looks like:
    Code:
    [ALIAS]
    MyFunction=html\M_NmSpace_MyObject_MyFunction_12345.htm
    [MAP]
    #define MyFunction 200
    [OPTIONS]
    Compatibility=1.1 or later
    Compiled file=MyHelp.chm
    Contents file=MyHelp.hhc
    Index file=MyHelp.hhk
    Default Topic=html\N_NmSpace.htm
    Full-text search=Yes
    Language=0x409 English (United States)
    Title=Keyscan7ConnectorHelp
    [FILES]
    html\*.htm
    icons\*.gif
    art\*.gif
    art\*.jpg
    art\*.png
    media\*.gif
    scripts\*.js
    styles\*.css
    [INFOTYPES]
    Thanks in advance for any help on the topic,

    -Frinny
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Update: It appears that the problem was in dynamically creating the hhp using a tool that helped me create the help file. There was a special character of some sort (white space or something) that was not being recognized in the hhp file used to compile the .chm help file. After moving the [MAP] and [Alias] sections to a different part in the hhp file the problem was cleared up.

    For those of you needing help with Context Help IDs check out this article...it really helped me :)

    Comment

    Working...