Problem launching CHM help file

Problem launching CHM help file

Postby Roger Seiler » Wed Apr 09, 2008 1:27 pm

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

Postby Roger Seiler » Wed Apr 09, 2008 1:34 pm

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

Postby Antonio Linares » Wed Apr 09, 2008 6:42 pm

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
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Roger Seiler » Wed Apr 09, 2008 7:51 pm

Antonio,

This method of calling the CHM solved the problem:

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

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

Postby Antonio Linares » Thu Apr 10, 2008 7:41 am

good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 94 guests