| View previous topic :: View next topic |
| Author |
Message |
Gary Guest
|
Posted: Fri Jan 09, 2004 4:08 pm Post subject: HTML Help Files |
|
|
Ok, I've entered the modern era of Help files and wrote a chm instead of
Winhelp but now, I can't get the program to open it. I tried WinExec with
the chm file name but it doesn't do anything. I tried the HelpCommand and it
says its not a help file.
What's the secret?
|
|
| Back to top |
|
 |
Rhys Sage Guest
|
Posted: Fri Jan 09, 2004 4:38 pm Post subject: Re: HTML Help Files |
|
|
I write all my helpfiles in html. I figure programs are hard enough to write
so why be a masochist?
--
Yours
Rhys
Join the anti-spam project:
http://groups.yahoo.com/group/Anti-Spam-Development/
or view my website:
http://www.sageworld.freeserve.co.uk
"Software is always designed to be operated by the average 8 year old.
Sadly,
most users never aspire to that level of intelligence."
|
|
| Back to top |
|
 |
Pete Fraser Guest
|
Posted: Fri Jan 09, 2004 5:45 pm Post subject: Re: HTML Help Files |
|
|
There is a nice (free) Delphi based control
at http://www.helpware.net/delphi/index.html
which allows you to show chm files.
--
Rgds Pete
=================================
GenHelp: The Component Authors help writer
Web: www.frasersoft.net/genhelp
=================================
"Gary" <nospam (AT) nospam (DOT) net> wrote
| Quote: | Ok, I've entered the modern era of Help files and wrote a chm instead of
Winhelp but now, I can't get the program to open it. I tried WinExec with
the chm file name but it doesn't do anything. I tried the HelpCommand and
it
says its not a help file.
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Jan 09, 2004 5:49 pm Post subject: Re: HTML Help Files |
|
|
"Gary" <nospam (AT) nospam (DOT) net> wrote
| Quote: | I tried WinExec with the chm file name but it doesn't do anything.
|
Try using ShellExecute() instead.
| Quote: | I tried the HelpCommand
|
That only works for WinHelp files. HTMLHelp has a completely different API
of its own. You can download the HTMLHelp API from Microsoft and then
include its htmlhelp.h header file into your code to gain access to its
functions.
Note that Microsoft's static .lib files are not compatible with Borland's
compilers, so have a look at the following page for downloading a
third-party solution to using HTMLHelp under BCB:
The C++ Builder HH Kit
http://www.helpware.net/downloads/index.htm
Gambit
|
|
| Back to top |
|
 |
Frederik Slijkerman Guest
|
Posted: Sat Jan 10, 2004 3:04 pm Post subject: Re: HTML Help Files |
|
|
| Quote: | Note that Microsoft's static .lib files are not compatible with Borland's
compilers, so have a look at the following page for downloading a
third-party solution to using HTMLHelp under BCB:
The C++ Builder HH Kit
http://www.helpware.net/downloads/index.htm
|
Beware: IIRC this links statically to the HTML help DLL so your
program will not run at all on computers that do not have HTML
help installed (correctly).
Frederik.
|
|
| Back to top |
|
 |
Richard Guest
|
Posted: Sat Jan 10, 2004 4:20 pm Post subject: Re: HTML Help Files |
|
|
Have you tried something like:
HtmlHelp(hParentWindow, _T("helpfilename::topic.htm"), HH_DISPLAY_TOPIC,
NULL) ;
"Gary" <nospam (AT) nospam (DOT) net> wrote
| Quote: | Ok, I've entered the modern era of Help files and wrote a chm instead of
Winhelp but now, I can't get the program to open it. I tried WinExec with
the chm file name but it doesn't do anything. I tried the HelpCommand and
it
says its not a help file.
What's the secret?
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat Jan 10, 2004 9:28 pm Post subject: Re: HTML Help Files |
|
|
"Frederik Slijkerman" <idontwant (AT) spam (DOT) com> wrote
| Quote: | Beware: IIRC this links statically to the HTML help DLL
so your program will not run at all on computers that do
not have HTML help installed (correctly).
|
You can always load htmlhelp.ocx manually ar runtime, you don't need to use
the .lib file. In fact, Example 2 in the download shows exactly that.
Gambit
|
|
| Back to top |
|
 |
|