Connecting Tech Pros Worldwide Forums | Help | Site Map

VB6 Help files & Context IDs

Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,137
#1: Dec 15 '08
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:
Expand|Select|Wrap|Line Numbers
  1. [ALIAS]
  2. MyFunction=html\M_NmSpace_MyObject_MyFunction_12345.htm
  3. [MAP]
  4. #define MyFunction 200
  5. [OPTIONS]
  6. Compatibility=1.1 or later
  7. Compiled file=MyHelp.chm
  8. Contents file=MyHelp.hhc
  9. Index file=MyHelp.hhk
  10. Default Topic=html\N_NmSpace.htm
  11. Full-text search=Yes
  12. Language=0x409 English (United States)
  13. Title=Keyscan7ConnectorHelp
  14. [FILES]
  15. html\*.htm
  16. icons\*.gif
  17. art\*.gif
  18. art\*.jpg
  19. art\*.png
  20. media\*.gif
  21. scripts\*.js
  22. styles\*.css
  23. [INFOTYPES]
Thanks in advance for any help on the topic,

-Frinny

Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,137
#2: Dec 30 '08

re: VB6 Help files & Context IDs


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 :)
Reply