Skip to main content
September 29, 2009
Question

CSH not working with .CHM file

  • September 29, 2009
  • 1 reply
  • 1100 views

Our Context Sensitive Help (CSH) was working fine with WinHelp (.hlp) but since switching over to HTML Help (.chm) it is no longer working.

If I do an "Active Test" from RoboHelp's "What's This?" compiler with our exe, the CSH works fine.  So why when I export it, and try and run it with our exe, it doesn't work?

Does anyone out there even have CSH working with their CHM file?

Thanks,

Stephanie

This topic has been closed for replies.

1 reply

Participating Frequently
September 29, 2009

Hi, Stephanie,

Have your developers modified the code that they use to call your Help file? Previously, they would have used a WinHelp API call like the following one to open your .hlp file:

WinHelp(HWnd, "helpfile.hlp", HELP_CONTEXT, 1001)

The equivalent HTML Help API call looks like this:

HtmlHelp(HWnd, "helpfile.chm", HH_HELP_CONTEXT, 1001)

In addition, developers working in .NET languages like C# have access to a range of further methods for calling HTML Help files.

These pages provides information for developers on how to call an HTML Help file from an application:

http://www.mshelpwiki.com/wiki/tiki-index.php?page=HTMLHelpArticles
http://msdn.microsoft.com/en-us/library/ms524256(VS.85).aspx

Pete

September 30, 2009

We have done this and it is still not working.

We used to use CSHInitialize to support context sensitive help throughout the application. Has anyone successfully used that method with a CHM file.

Steph