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
Can't open .chm help file
Moderator: Rathinagiri
Can't open .chm help file
When your toolbox only contains a hammer, everything looks like a nail...
- dhaine_adp
- Posts: 457
- Joined: Wed Aug 06, 2008 12:22 pm
- Location: Manila, Philippines
Re: Can't open .chm help file
Hi Ralp,
Why not use execute command of HMG? Please refer to HMG Manual for more details. But the concept is something like this.
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
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
Regards,
Danny
Regards,
Danny
Manila, Philippines
Danny
Manila, Philippines
Re: Can't open .chm help file
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
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...