6

We have a legacy application developed in Borland C++ Builder. Now we have updated the help file to HtmlHelp (.chm) file, we want to click on the Help button in the legacy c++ application to open the .chm file. It seems that I cannot find a good way to do this? Can anyone help?

Ryan
  • 26,884
  • 9
  • 56
  • 83
user981848
  • 295
  • 2
  • 4
  • 14
  • 1
    In what format was your old help file? What version of BC++ did You used and do you have source of an application? – onedevteam.com Oct 06 '11 at 10:44
  • Our old help is WinHelp. BC++ is Builder 6. We own the source code of the C++ application. Someone mentioned in a different topic of using HtmlHelp.ocx or just use shellexecute. Can anyone show me some sample code? – user981848 Oct 06 '11 at 13:49

2 Answers2

2

My application uses HTML Help but in a newer version of C++ Builder.

Here is a code snipit of how we include it in the main form.

//helpviewer
#include "HTMLHelpViewer.hpp"
#pragma link "HTMLHelpViewer"

In the formactivate

Application->HelpFile = "some drive letter:\\some directory\\somehelpfile.chm";

To display the help

Application->HelpCommand(HELP_CONTENTS,0);

Hope this is of some value

-1

This has been asked and answered many times before, with full code snippets, in the Borland/CodeGear/Embarcadero forums. Search the archives at http://www.deja.com and http://forums.embarcadero.com.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
  • 1
    -1 Not a helpful comment. I just searched the forums and got exactly 1 hit on the word htmlhelp, which didn't solve my problem. At least provide a link(s) to support your statement. – marcp Oct 15 '14 at 21:11
  • 2
    This answer was posted 3 years ago. Embarcadero's forum server crashed a few weeks ago and all past messages were lost. But there are third-party archive sites available that have copies of past messages. Or search Google. – Remy Lebeau Oct 15 '14 at 21:25