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!

Unable To display HTML Help file from ActiveX Control

Status
Not open for further replies.

Ambles

Programmer
Aug 16, 2002
10
GB
Calling all techies !!

Please could you help me to overcome a problem I have in getting an compiled html help file to show from an MFC Active X control, developed in Visual C++ .Net

I have complied a file called Help.chm and put in in the same directory as the project.

In the IDL file of the control I have the line
helpfile("Help.chm"), and I have even included the .chm file in the solution

In the Constructor of the control class I have added the line AfxGetApp()->EnableHtmlHelp();

and in the OnHelp Windows Message I have the following code.

HtmlHelp(NULL,HH_DISPLAY_TOC);
return True;


When I press F1 I get "Unable To Lauch Help" or "Unable to display help".

I have also tried HH_DISPLAY_TOPIC with a mapped topic ID and HH_DISPLAY_CONTEXT, and can't get to work at all.
Is the help file at fault or is it the code itself
Any Comment Is Useful !

Cheers X [ponytails]

 
It's all right as I have now solved it . Stupid of me I forget to put the chm file in the same directory as the ocx. I shall never forgat that one again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top