Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Help in a Project

Status
Not open for further replies.

porto99

Technical User
Nov 1, 2004
96
GB
This is the first time I tried to include Help into my project.

My project shows 3 help files in the Solution Explorer:-

Help Files
-- My_Prog.cnt
-- bullet.bmp
-- afxrtf.rtf

Currently when help is selected (say F1 key) I get the blank default page.
e.g.
<<YourApp>> Help Index

<< Write a topic here that discusses your application's main dialog.>>
Now if I right click on the My_Prog.cnt file and open it with hcrtf I can added Help items into it but when I test it (Contents OK) I get the error:-
The topic does not exist. Contact your application vendor for an updated Help file. (129).
But my program does not call up the correct file, still get the default help page.

Now I started to use a freeware program Cheetah to added the rtf data and also used Microsoft WorkShop (hcrtf)to take the Cheetah produced rtf file and compile to help files.

[purple]I can produce a help file that works fine on its own.
But how do I integrate it into my project.[/purple]

If I copy over the new help files into the project I get the following error when I try and run Help.
The topic does not exist. Contact your application vendor for an updated Help file. (129).


I did try renaming files, and adding/removing help files from the project etc, but still no luck.

I seem to be going around in circles, any Help out there?

Can I link in the compiled Help producted by the freeware program and Microsoft Workshop into my project.

Or how can I write the help using Visual Studio?
 
In Visual Studio 6.0, I found I needed the help files in the same directory as the executable module. As such, I had to copy the .HLP and the .CNT files into the DEBUG subdirectory and into the RELEASE subdirectory of the project. Also, I found that these files were often overwritten during a project build - so I had to keep copying them over and over.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top