I'm documenting an application written in Visual FoxPro v9, for which I've been providing accompanying CHM files for years.
Long ago, I asked our developers if we could "wire up" the application to enable the display of Context-Sensitive Help from the many forms which appear therein. The answer has, until recently, been "no time to do that right now".
So, we've finally come to the day when folks are demanding that we do this. I'm all set to go (I think) on my end of things: I've got my Flare Alias file all set up with identifiers mapped to appropriate topics in my project, and I've provided the development team with a (*.h) header file.
I passed the "CSH Calls for HTML Help—Developers" Flare Help topic along to the team, as well, which tells them the following:
Using this information, however, the developers can't seem to get the CSH working. Does anyone out there work in a shop where CSH is being called from a VFP application? Can you help?Use the following information to connect HTML Help to an application.
- Use the following syntax to call a topic using a map number:
HWND HtmlHelp(Window(), “c:\path\MyHelp.chmâ€, HH_HELP_CONTEXT, Number);
- Use the following syntax to call a topic using a file name:
HWND HtmlHelp (Window(), “c:\path\MyHelp.chmâ€, HH_DISPLAY_TOPIC, "welcome.htm");
To hook context-sensitive Help (CSH) to an application, the code looks something like this:
HtmlHelp(hWnd, /*Window handle of program or dialog*/
"CSHHelp.chm", /*Name of the CHM file*/
HH_HELP_CONTEXT,
dwMapNumber); /*Number from header file*/
Thanks!