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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using html help files 1

Status
Not open for further replies.

grindstonegirl

Technical User
Jun 12, 2003
29
0
0
US
Hi
I created html help files and i want to access them from a help menu in a c++ program. The help file i need to open is a .chm How can I do this from a c++ without using the F1 help? thanks
~grindstone~
 
I have done a similar thing but in a VC++ MFC Program. If u r also making a mfc programme, let me know.

Regards
mathu
 
yeah i am using a vc++ mfc program, but i also figured out how to get it to work thanks anyways!
 
>> but i also figured out how to get it to work

Great! How about posting the solution?

-pete
 
ok here's the solution
the trick is setting up microsoft visual c++ to do this. I didn't realize this at first so it made it difficult. The actual code is very simple once you set the libraries up in visual c++. Follow these instructions to set up visual c++:


then in your code where you want to open a .chm file just type:
HtmlHelp( NULL,"c:\myHelp.chm::/home.htm", HH_DISPLAY_TOC,0);

where myHelp.chm is your project and home.htm is the homepage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top