Skip to main content
February 15, 2008
Question

C++ .Net 2.0 supported in RH7?

  • February 15, 2008
  • 2 replies
  • 464 views
I am working with my developer to integrate a CHM with our desktop application. Our application is written in C++ .Net 2.0

We want to call the RH7 Map IDs; Use custom markers from FM8 imported into RH7 as CSH map IDs.

In RH7, Adobe supplies an API for C++ .Net at C:\Program Files\Adobe\Adobe RoboHelp 7\CSH API\RoboHelp.NET

Their documentation (supplied as a CHM file) specifies C++ .Net, but I cannot tell if this is still usable with C++ .Net 2.0

Can we use their supplied API?
This topic has been closed for replies.

2 replies

Participating Frequently
February 16, 2008
Aran,

As anubisascends says, I don't believe that your developers need to use more than the standard .NET methods for calling .chm files; no third-party API is required. Information for .NET developers on how to attach .chm files to their applications is widely available in places such as the following:

http://msdn2.microsoft.com/en-us/library/aa983560.aspx
http://www.mshelpwiki.com/wiki/tiki-index.php?page=HTMLHelpArticles
http://helpware.net/mshelp2/demo2/h1xNET.htm

With .NET 2.0, I believe that Microsoft corrected an oversight in earlier versions of .NET and provided a HelpNavigator.TopicId value for passing context integers to .chm files. The syntax is something like this:

Help.ShowHelp( hwndCaller, CHM_file_path, HelpNavigator.TopicId, context_integer);

For more information, see:

http://msdn2.microsoft.com/en-us/library/72b0cc4y(VS.85).aspx

An alternative is to use "unmanaged" code to call the HTML Help API directly, as described in the following article:

http://support.microsoft.com/?kbid=317406

Then the developer can use HH_HELP_CONTEXT commands to pass context-integers to your help file.

Pete
February 16, 2008
.net is .net. Even if it is used for .net 1.0, you should be able to call the functions from 2.0, 3.0, and 3.5.