•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 402,062 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,492 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser: Programming Forums
Views: 805 | Replies: 5
![]() |
•
•
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,836
Reputation:
Rep Power: 11
Solved Threads: 189
Delphi provides you with the Microsoft Help Compiler (at least versions as old as D5 did), but using it directly is not fun.
You can google "help file creator" for the right stuff.
If you want to make HLP files, you can always check out Finn Christiansen's Shalom Help Maker, which is a nice, simple, 100% free tool. It looks like danish-shareware.dk is down right now... but you can google elsewhere.
If you want to make CHM files, I've never done that, so you'll have to sort through google yourself, alas.
You can google "help file creator" for the right stuff.
If you want to make HLP files, you can always check out Finn Christiansen's Shalom Help Maker, which is a nice, simple, 100% free tool. It looks like danish-shareware.dk is down right now... but you can google elsewhere.
If you want to make CHM files, I've never done that, so you'll have to sort through google yourself, alas.
•
•
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,836
Reputation:
Rep Power: 11
Solved Threads: 189
•
•
Join Date: Oct 2007
Posts: 34
Reputation:
Rep Power: 1
Solved Threads: 0
ok i had another go with this, i went through
http://www.devarticles.com/c/a/Delph...-Applications/
i downloaded my hcw from :
http://www.microsoft.com/Downloads/d...displaylang=en
but the application could not even call the help file at the end, when i click on 'help->about' it'll say that the file doesn't have table of contents!
what's weird, is that if i double click on the hlp file i compiled, and then click on contents, it ignores me and i won't see any table index.
if i move the file out from my project's folder and open the file, i could click on 'contents' and there'll be index coming out.
http://www.devarticles.com/c/a/Delph...-Applications/
i downloaded my hcw from :
http://www.microsoft.com/Downloads/d...displaylang=en
but the application could not even call the help file at the end, when i click on 'help->about' it'll say that the file doesn't have table of contents!
what's weird, is that if i double click on the hlp file i compiled, and then click on contents, it ignores me and i won't see any table index.
if i move the file out from my project's folder and open the file, i could click on 'contents' and there'll be index coming out.
•
•
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,836
Reputation:
Rep Power: 11
Solved Threads: 189
You are doing it the hard way. You really should download something like Shalom and use it...
The problem is that your help file doesn't have a table of contents. This is usually stored in a separate file, so you'd have
How are you calling the help file? It doesn't need to have a contents, but WinHelp will complain if it is instructed to display the contents page for a help that doesn't have one.
(My own help files are often pretty small and succinct, so I tend to omit contents pages. However, all substantial help files should have a table of contents...)
In your code, you should have something like
If you use Shalom Help Maker, it can generate a little include file for you that gives constants for all the help contexts. So it could read:
Hope this helps.
The problem is that your help file doesn't have a table of contents. This is usually stored in a separate file, so you'd have
frobinator.cntfrobinator.hlpHow are you calling the help file? It doesn't need to have a contents, but WinHelp will complain if it is instructed to display the contents page for a help that doesn't have one.
(My own help files are often pretty small and succinct, so I tend to omit contents pages. However, all substantial help files should have a table of contents...)
In your code, you should have something like
Delphi Syntax (Toggle Plain Text)
procedure TForm1.FormCreate( Sender: tObject ); begin // The help file is named the same as the program, // and is located in the same directory. application.helpFile := changeFileExt( paramStr( 0 ), '.hlp' ) end; procedure TForm1.AboutClick( Sender: tObject ); begin // Context 42 is the help file's about page... application.helpContext( 42 ) end;
If you use Shalom Help Maker, it can generate a little include file for you that gives constants for all the help contexts. So it could read:
Delphi Syntax (Toggle Plain Text)
... implementation {$R *.dfm} {$include MY_HELP_Constants.inc} ... procedure TForm1.AboutClick( Sender: tObject ); begin application.helpContext( MY_HELP_ABOUT ) end; procedure TForm1.HelpClick( Sender: tObject ); begin application.helpContext( MY_HELP_CONTENTS ) end; ...
Hope this helps.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Pascal and Delphi Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- how to read file with filesystemobject (Visual Basic 4 / 5 / 6)
- NEW PDF File creation issue using PHP (PHP)
- Creating exe file (VB.NET)
- I've got Trojan.Holax... is this bad? (Viruses, Spyware and other Nasties)
- not-a-virusadware (Viruses, Spyware and other Nasties)
- Bogus "page cannot be displayed" error on URL http:/// (Viruses, Spyware and other Nasties)
- Creating own file extension (Computer Science and Software Design)
- Creation and concurrent execution of processes (C)
- VxD creation for Windows 2000 server (C)
- Saving postscript in OSX (Panther) (OS X)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Tutorial: Handling Dates and Time in Delphi
- Next Thread: How to make a popup window



Linear Mode