Discussion:
Context sensitive html help
(too old to reply)
F.
2003-07-24 08:16:42 UTC
Permalink
I made a project with HTML Help Workshop, but when i try to open a topic by
pressing F1 on a control in my program, i get the msg: "HH_HELP_CONTEXT
called without a [MAP] section" and then it opens the default topic.
The .chm file compiles with no problem.
I did edit the [MAP] section. I tested the compiled file:
HH_DISPLAY_TOPIC works, but HH_HELP_CONTEXT doesn't.
Can somebody explain how to make tings work properly?

thank you for your time.

F.
Pete Lees
2003-07-24 22:42:03 UTC
Permalink
F.,
Post by F.
I made a project with HTML Help Workshop, but when i try to open a topic by
pressing F1 on a control in my program, i get the msg: "HH_HELP_CONTEXT
called without a [MAP] section" and then it opens the default topic.
Did you set up an [ALIAS] section as well as a [MAP] section in your
project file? For information on how to set up these two sections,
see:

http://www.mvps.org/htmlhelpcenter/htmlhelp/hhtutorials.html#mapping
http://helpware.net/htmlhelp/how_to_context.htm
http://support.microsoft.com/?kbid=189453

Some other factors that may be relevant are:

1) The entries in the [ALIAS] and [MAP} sections are case-sensitive.
For example, the topic IDs IDH_INTRO and IDH_Intro are different.

2) Only one space or tab character is allowed after each #define in
the [MAP] section.

3) You may be able to suppress the error message by adding the prefix
$global_ to the names of the window types in your .hhp file. For more
information on global window types, see:

http://msdn.microsoft.com/library/en-us/htmlhelp/html/vsconwintypesglobal.asp

--
Pete (Microsoft Help MVP)
F.
2003-07-25 09:38:05 UTC
Permalink
Yes, I have edited both [MAP] and [ALIAS] sections. I'm usig only the
default window, I only edited its name.

I found usefull information in the documentation you directed me to, but i
still have the same problem.
Post by Pete Lees
F.,
Post by F.
I made a project with HTML Help Workshop, but when i try to open a topic by
pressing F1 on a control in my program, i get the msg: "HH_HELP_CONTEXT
called without a [MAP] section" and then it opens the default topic.
Did you set up an [ALIAS] section as well as a [MAP] section in your
project file? For information on how to set up these two sections,
http://www.mvps.org/htmlhelpcenter/htmlhelp/hhtutorials.html#mapping
http://helpware.net/htmlhelp/how_to_context.htm
http://support.microsoft.com/?kbid=189453
1) The entries in the [ALIAS] and [MAP} sections are case-sensitive.
For example, the topic IDs IDH_INTRO and IDH_Intro are different.
2) Only one space or tab character is allowed after each #define in
the [MAP] section.
3) You may be able to suppress the error message by adding the prefix
$global_ to the names of the window types in your .hhp file. For more
http://msdn.microsoft.com/library/en-us/htmlhelp/html/vsconwintypesglobal.as
p
Post by Pete Lees
--
Pete (Microsoft Help MVP)
Pete Lees
2003-07-25 13:38:12 UTC
Permalink
F.,
Post by F.
Yes, I have edited both [MAP] and [ALIAS] sections. I'm usig only the
default window, I only edited its name.
I found usefull information in the documentation you directed me to, but i
still have the same problem.
If you haven't already tried this, I would recommend using the test
facilities in HTML Help Workshop to check the context-sensitive help
mappings in your .chm file. To do this:

1) On the Test menu, select HtmlHelp API.

2) In the Compiled File field, make sure that the name of your help
file is shown.

3) In the Command field, select HH_HELP_CONTEXT.

4) In the Map Number field, type a numeric ID that you specified in
your Map.h file.

If you can successfully open the help file without the error message
appearing, you'll know that the problem lies not in the help file
itself but in the way it is attached to the application. For some
useful resources on how to connect HTML Help to an application, see:

http://www.mshelpwiki.com/index.php?page=HTMLHelpArticles

If you continue to have problems, zip up and send me your .chm, .hhp,
and (if you're using them) .h files. I'd be happy to have a closer
look.

--
Pete (Microsoft Help MVP)

Loading...