开发者

How to open HTMLHelp (.chm) file from Borland C++ Application

开发者 https://www.devze.com 2023-04-11 07:39 出处:网络
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++ applicatio

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?


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消