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

Add help functionality for an MFC application

Status
Not open for further replies.

qwertyasdf9

Programmer
Joined
Feb 15, 2005
Messages
3
Location
DE
We intend to use WinCE 5.0 operating system and MFC to develop an application. The application is for Industrial Control/Recording.

I would like to know how you might go about adding help files to an MFC application. It would be nice for our technical publishing department to generate and maintain .txt,.pdf etc files which could be added to our application.

The customer can then view these files within our application.

I hope you can help
 
Ok I've done some more research into this.

I've found something called Help Compiler Workshop (HCW.exe) in Dev studio which can be used to create a help project and compile .rtf files to be used by WinHelp.

If I create a new project with AppWizard from Embedded VC++ 3.0 (which we have to use) then I can see the Help dialog appear but I can't get it to view a .hlp file I create.

Anyone used the HCW.exe?
Can anyone connect .hlp file to their AppWizard generated project?

 
Ok I now basically understand the HCW.exe.

I can't seem to find the .hlp I've created.
When I select Help->Help Topics in the Embedded AppWizard it shows a dialog saying:-

Cannot open file c:\temphelp\temphelp.hlp

I've appended to C*****App::InitInstance()
{
....

// The one and only window has been initialized, so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();

//First free the string allocated by MFC at CWinApp startup.
//The string is allocated before InitInstance is called.
free((void*)m_pszHelpFilePath);

//Change the name of the .HLP file.
//The CWinApp destructor will free the memory.
m_pszHelpFilePath = _tcsdup(_T("c:\\temphelp\\temphelp.hlp"));
return TRUE;
}

I can't see what else I can do?

Any ideas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top