简体   繁体   English

如何从Borland C ++ Application打开HTMLHelp(.chm)文件

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

We have a legacy application developed in Borland C++ Builder. 我们有一个在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. 现在我们已将帮助文件更新为HtmlHelp(.chm)文件,我们要单击旧版c ++应用程序中的“帮助”按钮以打开.chm文件。 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. 我的应用程序使用HTML帮助,但在较新版本的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. 在Borland / CodeGear / Embarcadero论坛中,已经多次询问并回答了完整的代码片段。 Search the archives at http://www.deja.com and http://forums.embarcadero.com . http://www.deja.comhttp://forums.embarcadero.com上搜索档案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM