Page 1 of 1

Problem launching CHM help file

Posted: Wed Apr 09, 2008 1:27 pm
by Roger Seiler
I get a GPF with the following:

#define HH_DISPLAY_INDEX 2

HTMLHelp( oWnd:hWnd, "RMCHART.CHM", HH_DISPLAY_INDEX, 0 )

OR...

HTMLHelp( 0, "RMCHART.CHM", HH_DISPLAY_INDEX, 0 )

I also get a GPF if I include the full path to RMCHART.CHM.

Before getting the GPF, the standard window for displaying a CHM help file is displayed, and then the hated Windows error box is displayed asking if I want to auto-email the GPF error report to MS.

Posted: Wed Apr 09, 2008 1:34 pm
by Roger Seiler
I guess the problem must be some incompatibility with RMCHART.CHM because if I copy Fwfun.chm into the same folder and then substitute "Fwfun.chm" in the function call instead of "Rmchart.chm", then the FiveWin help file displays okay.

However, If I launch Rmchart.chm from outside my app, then it launches okay.

Are some CHM files more equal than others?

Posted: Wed Apr 09, 2008 6:42 pm
by Antonio Linares
Roger,

We don't know if there are different types of CHM.

Next 8.04 version includes automatic support for CHM and HLP files :-)
Same syntax for both types of files.

Posted: Wed Apr 09, 2008 7:51 pm
by Roger Seiler
Antonio,

This method of calling the CHM solved the problem:

Winexec("HH.EXE <myhelpfile.chm>")

- Roger

Posted: Thu Apr 10, 2008 7:41 am
by Antonio Linares
good :-)