Can't open .chm help file

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
RalphMDS
Posts: 21
Joined: Wed Mar 25, 2009 1:24 pm
Location: New Jersey, U.S.A.

Can't open .chm help file

Post by RalphMDS »

Hi,

I hope someone can help me. I have been researching for hours and getting nowhere. Using the latest version of HMG if I try to open an old WinHelp file:

SET HELPFILE TO 'OldStyleHelpFile.HLP'
ON KEY F1 of Main ACTION DISPLAY HELP MAIN

the file opens no problem. However if I try to use a modern HTMLHelp .chm file

SET HELPFILE TO 'MyHTMLHelpFile.chm'
ON KEY F1 of Main ACTION DISPLAY HELP MAIN

I get the error "The MyHTMLHelpFile.chm file is not a Windows Help file, or the file is corrupted."

Is there a way to use chm files with HMG? If they do not work with HMG, can someone please tell me the preferred way to run hh.exe to open the file from within my program?

Much appreciation for any help offered.

Best regards,

Ralph
When your toolbox only contains a hammer, everything looks like a nail...
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: Can't open .chm help file

Post by dhaine_adp »

Hi Ralp,

Why not use execute command of HMG? Please refer to HMG Manual for more details. But the concept is something like this.

Code: Select all


ON KEY F1 of Main ACTION MyHelp()


*************
function MyHelp()

EXECUTE FILE 'MyHTMLHelpFile.chm'
RETURN NIL

You will find more info in HMG Help file and also see the demo files that comes along with the distribution. I hope that keeps you going....

Regards,

Danny
Regards,

Danny
Manila, Philippines
RalphMDS
Posts: 21
Joined: Wed Mar 25, 2009 1:24 pm
Location: New Jersey, U.S.A.

Re: Can't open .chm help file

Post by RalphMDS »

Hi Danny,

Thanks for showing me how to do that. I was trying to get it to work with Activex and with the old run command and was getting nowhere fast.

Your code worked perfectly!

Thanks again for the help.

Best regards,

Ralph
When your toolbox only contains a hammer, everything looks like a nail...
Post Reply