CSH calls from a Visual FoxPro application?

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
TheGreatAndPowerfulOz
Sr. Propeller Head
Posts: 131
Joined: Mon Apr 24, 2006 12:52 pm
Location: Glen Mills, PA

CSH calls from a Visual FoxPro application?

Post by TheGreatAndPowerfulOz »

Hello, all.

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:
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*/
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?

Thanks!
Austin Wright

Flare 2022 r3 (18.2.8431.26678) :: TopNav HTML5 / PDF output
Post Reply