Problem launching CHM help file

Post Reply
User avatar
Roger Seiler
Posts: 223
Joined: Thu Dec 01, 2005 3:34 pm
Location: Nyack, New York, USA
Contact:

Problem launching CHM help file

Post 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.
User avatar
Roger Seiler
Posts: 223
Joined: Thu Dec 01, 2005 3:34 pm
Location: Nyack, New York, USA
Contact:

Post 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?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Roger Seiler
Posts: 223
Joined: Thu Dec 01, 2005 3:34 pm
Location: Nyack, New York, USA
Contact:

Post by Roger Seiler »

Antonio,

This method of calling the CHM solved the problem:

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

- Roger
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply