• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

HELP-File programming with Visual C++...

I want to create a helpfile for my programmed application but I forgot to generate a context-help using the application-wizard. What is the best way to insert a helpfile without generating a new application with the application wizard ? It is not necessary, that the help-file is context-specific. I want to create a help-file using MS Word and I want to insert some snaphots. What is the best way ???
0
alexott
Asked:
alexott
  • 2
1 Solution
 
tvanceplusCommented:
The best way to use help when the help was not added into AppWizard is to use the html help that comes with VC++. You can find it in the [CD Root]\htmlhelp directory on the CD.

Install HtmlHelp on your computer. Then put together a simple help system in the HtmlHelp program. (This is not difficult; you can create a page in word and the save as web page.) Then you need to make "htmlhelp.lib" one of your project files. Finally, set up the path of the HtmlHelp.h file as one of your default directories. Then this code will work.


....

#include <htmlhelp.H>


....


CString path="c:\myhtmlhelp.chm";

HtmlHelp(NULL,path,NULL,0);


The HtmlHelp(...) function actually brings up the help screen.

I hope this helps, good luck!

tvanceplus
0
 
alexottAuthor Commented:
I Cannot Find any HTML-Help with my authors edition of visual c++.
0
 
bandlCommented:

Take a look here: (hopefully this link works):

http://msdn.microsoft.com/library/default.asp?URL/library/tools/htmlhelp/chm/hh1start.htm

or

go to msdn.microsoft.com and search for HTMLHELP to get information and download links for HTML Help.

I prefer HTML Help because its in the fairly common HTML format and because the help browser actually lets you link to web sites.

Caution: I'm not sure specifics but Internet Explorer 5 must be installed on the computer for the help to work (Win '98 might work without Explorer). There are patches provided to support this functionality if IE5 isn't on the computer.


I've never tried to actually add windows help (non-html) back into a project but I suspect if you were to study it a bit by creating two identical apps using the wizard, one with, one without, it wouldn't take long to see the difference. A couple of files and some command handlers in the main app object I suspect.

Good luck
0
 
alexottAuthor Commented:
Answer accepted
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now