FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem launching CHM help file
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
Problem launching CHM help file
Posted: Wed Apr 09, 2008 01: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.

Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
Problem launching CHM help file
Posted: Wed Apr 09, 2008 01: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?

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Problem launching CHM help file
Posted: Wed Apr 09, 2008 06: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
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
Problem launching CHM help file
Posted: Wed Apr 09, 2008 07:51 PM

Antonio,

This method of calling the CHM solved the problem:

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

  • Roger
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Problem launching CHM help file
Posted: Thu Apr 10, 2008 07:41 AM

good :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion