Help needed with Help
-
- Posts: 17
- Joined: Sun Jan 28, 2007 11:47 am
Help needed with Help
I am trying to call specific topics from a HTML Help file with the following line of code:
HTMLHelp(0, "d:\turboint\help\tvwinint.chm", 2, nTopic)
but no matter what the topic nr is it always comes up with the first topic (default).
How do I need to change to code?
Regards,
Stephan
HTMLHelp(0, "d:\turboint\help\tvwinint.chm", 2, nTopic)
but no matter what the topic nr is it always comes up with the first topic (default).
How do I need to change to code?
Regards,
Stephan
-
- Posts: 17
- Joined: Sun Jan 28, 2007 11:47 am
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 17
- Joined: Sun Jan 28, 2007 11:47 am
-
- Posts: 17
- Joined: Sun Jan 28, 2007 11:47 am
-
- Posts: 17
- Joined: Sun Jan 28, 2007 11:47 am
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
-
- Posts: 17
- Joined: Sun Jan 28, 2007 11:47 am
Hi Richard,
thanks for advice, but which dll are you pointing at? Is it htmlhelp.dll? Can you sent it to my?
If have search the web for that file but couldn't find it.
The frusting think is that this can work, at least it works with a small - program I wrote. Both - and FHW are build on xHarbour, so..
Regards,
Stephan
thanks for advice, but which dll are you pointing at? Is it htmlhelp.dll? Can you sent it to my?
If have search the web for that file but couldn't find it.
The frusting think is that this can work, at least it works with a small - program I wrote. Both - and FHW are build on xHarbour, so..
Regards,
Stephan
-
- Posts: 17
- Joined: Sun Jan 28, 2007 11:47 am
This could be a solution: simply call HH.EXE with some parameters.
Winexec("HH.EXE <nTopic> <myhelpfile.chm>")
It actually works (if HTMLHelp is installed of course).
Now there is another problem: At startup there is definition for F1:
SetKey( 28, { |nKey| MyHtmlHelp(IDH_INTRODUCTION) } )
Pressing F1 should call the function MyHtmlHelp(), but instead there is message 'No HELP file available'. Although not defined by me the function HelpTopic() is called. What can I do to change this behaviour?
Regards,
Stephan
Winexec("HH.EXE <nTopic> <myhelpfile.chm>")
It actually works (if HTMLHelp is installed of course).
Now there is another problem: At startup there is definition for F1:
SetKey( 28, { |nKey| MyHtmlHelp(IDH_INTRODUCTION) } )
Pressing F1 should call the function MyHtmlHelp(), but instead there is message 'No HELP file available'. Although not defined by me the function HelpTopic() is called. What can I do to change this behaviour?
Regards,
Stephan
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL cVar := SPACE( 30 )
SETKEY( VK_F1, { || MyHelp() } )
DEFINE DIALOG oDlg
@ 1, 1 GET cVar
@ 3, 1 BUTTON "&Close" ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
STATIC FUNCTION MYHELP()
? "Help!"
RETURN NIL
FUNCTION HELPINDEX()
RETURN NIL
FUNCTION HELPTOPIC()
RETURN NIL
FUNCTION HELPPOPUP()
RETURN NIL
-
- Posts: 17
- Joined: Sun Jan 28, 2007 11:47 am
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Stephan,
Have you looked at the FWH help file modifications I made for HTML help? They are available on my website here:
http://ourworld.compuserve.com/homepage ... rogram.htm
Look for "CHM Help Code"
It has been quite some time since I wrote them so I don't remember exactly what is there, but perhaps it will answer some of your questions.
James
Have you looked at the FWH help file modifications I made for HTML help? They are available on my website here:
http://ourworld.compuserve.com/homepage ... rogram.htm
Look for "CHM Help Code"
It has been quite some time since I wrote them so I don't remember exactly what is there, but perhaps it will answer some of your questions.
James
-
- Posts: 17
- Joined: Sun Jan 28, 2007 11:47 am