Hi,
See these pages for information on how to hand-craft the map
and alias files:
http://frogleg.mvps.org/helptechnologies/htmlhelp/hhtutorials.html#mapping
http://helpware.net/htmlhelp/how_to_context.htm
In general, though, you shouldn't need to change the existing
context integers and topic IDs just because you're moving from
WinHelp to HTML Help. So long as the developers change their
WinHelp API calls to HTML Help API calls, and you configure your
.chm file appropriately, the existing values will work.
In fact, Microsoft modelled the HTML Help API on the WinHelp
API to simplify the process of updating existing applications from
WinHelp to HTML Help. For example, a typical WinHelp API command
is:
WinHelp(HWnd, "helpfile.hlp", HELP_CONTEXT, 1001)
The HTML Help API equivalent is almost the same:
HtmlHelp(HWnd, "helpfile.chm", HH_HELP_CONTEXT, 1001)
For information for developers on how to call an HTML Help
file from an application, see these pages:
http://www.mshelpwiki.com/wiki/tiki-index.php?page=HTMLHelpArticles
http://msdn.microsoft.com/en-us/library/ms524256(VS.85).aspx
Pete