Help needed with Help

Help needed with Help

Postby HennekensSM » Sun Apr 01, 2007 8:35 pm

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

Postby HennekensSM » Mon Apr 02, 2007 10:27 pm

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

Postby Antonio Linares » Mon Apr 02, 2007 10:38 pm

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby HennekensSM » Mon Apr 02, 2007 11:06 pm

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

Postby HennekensSM » Mon Apr 02, 2007 11:40 pm

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

Postby HennekensSM » Tue Apr 03, 2007 2:36 pm

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

Postby Richard Chidiak » Tue Apr 03, 2007 4:35 pm

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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby HennekensSM » Tue Apr 03, 2007 9:10 pm

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

Postby HennekensSM » Thu Apr 05, 2007 8:03 pm

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

Postby Enrico Maria Giordano » Thu Apr 05, 2007 8:49 pm

Code: Select all  Expand view
#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
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby HennekensSM » Thu Apr 05, 2007 9:45 pm

YES, thos works. Thanks Enrico!

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

Postby James Bott » Fri Apr 06, 2007 6:49 am

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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby HennekensSM » Fri Apr 06, 2007 6:59 am

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

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 127 guests