Help needed with Help

Post Reply
HennekensSM
Posts: 17
Joined: Sun Jan 28, 2007 11:47 am

Help needed with Help

Post by HennekensSM »

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
HennekensSM
Posts: 17
Joined: Sun Jan 28, 2007 11:47 am

Post by HennekensSM »

Oke, I think I found it.
When using the function as follows
HtmlHelpPopup(0, "d:\turboint\help\tvwinint.chm", 0, "idh_introduction.htm") it works, BUT not always. It randomly GPF's.
Has anybody why these random GPF's occur?

Regards,
Stephan
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Stephan,

We have tested HTMLHelp(0, "d:\turboint\help\tvwinint.chm", 2, nTopic)
and it GPFs both in XP and Vista :-(

Its difficult to know why as we are invoking an OCX (as a DLL) function

maybe we should try a direct call implementing a C wrapper instead of using DLL FUNCTION command
regards, saludos

Antonio Linares
www.fivetechsoft.com
HennekensSM
Posts: 17
Joined: Sun Jan 28, 2007 11:47 am

Post by HennekensSM »

Thanks ANtonio. Would be most welcome if you could find a solution for this problem

Regards,
Stephan
HennekensSM
Posts: 17
Joined: Sun Jan 28, 2007 11:47 am

Post by HennekensSM »

Antonio,

in the C:\BCC55\INLUDE I found htmlhelp.h.
Could this file be of any help to find another solution?

Regards,
Stephan
HennekensSM
Posts: 17
Joined: Sun Jan 28, 2007 11:47 am

Post by HennekensSM »

The problem is that VISTA does not support classic help (.HLP) anymore, so we will have to change to Html Help.
Any suggestion to fix this problem is welcome.

Regards,
Stephan
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Post by Richard Chidiak »

Stephan

You can download the appropriate dll from microsoft msdn to support help files

If you click on a hlp file under vista, you will be guided to the appropriate link. Then you can use all hlp files under vista.

I have downloaded the file a month ago but i do not remember the link

HTH

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
HennekensSM
Posts: 17
Joined: Sun Jan 28, 2007 11:47 am

Post by HennekensSM »

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
HennekensSM
Posts: 17
Joined: Sun Jan 28, 2007 11:47 am

Post by HennekensSM »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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
EMG
HennekensSM
Posts: 17
Joined: Sun Jan 28, 2007 11:47 am

Post by HennekensSM »

YES, thos works. Thanks Enrico!

Regards,
Stephan
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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
HennekensSM
Posts: 17
Joined: Sun Jan 28, 2007 11:47 am

Post by HennekensSM »

Thanks you James.
It seems your solution is the same as the one I found.

Regards,
Stephan
Post Reply