如何手动将HTML帮助文件注册到Delphi(RAD Studio)XE6在线文档中? [英] How can I manually register an html-help file into the Delphi (RAD Studio) XE6 online documentation?

查看:171
本文介绍了如何手动将HTML帮助文件注册到Delphi(RAD Studio)XE6在线文档中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行诸如Developer Express组件之类的delphi组件安装程序时,它将使用h2reg和INI文件以及一些宏魔术函数将html帮助文件注册到Delphi IDE中.如果我是Delphi组件的开放源代码或商业作者,并且想提供一个注册了html-help的安装程序,我该怎么办?

When a delphi component installer like the Developer Express components runs, it registers html-help files into the Delphi IDE, using h2reg and an INI file, and some macro-magic. If I was an open source or commercial author of a Delphi component, and I wanted to ship an installer that registers html-help, how would I do it?

在非常旧的Delphi版本(2007之前)中,有一个用于注册额外的winhelp内容的工具.但是近年来,尽管许多大型供应商(如开发人员Express)仍在为他们的组件提供帮助,可以使用IDE上下文帮助(按F1键)进行访问,但是在Delphi 2007及更高版本(包括XE6)中似乎并没有完成此过程的过程已得到充分记录,因此组件作者通常会忽略帮助中内置的Delphi IDE.

In very very old versions of Delphi (pre-2007) there was a tool for registering extra winhelp stuff. But in recent years, while many large vendors (like developer express) still ship help for their components which can be accessed using the IDE context help (hit F1 key), it does not seem like in Delphi 2007 and up, including XE6, that the process by which this is done is well documented and this leaves component authors usually ignoring the Delphi IDE built in help.

我发现一个名为h2reg的第三方实用程序可能与此有关,但是我无法发现在此处显示某些内容的秘密:

I have discovered that a third-party utility called h2reg may have something to do with this, but I am unable to discover the secret of making something show up here:

我相信我知道难题的其中几个,而且我有一个来自Developer Express组件的示例工作.ini文件,但是我无法弄清楚如何将它们拼在一起.我认为这对于所有Delphi组件开发人员来说都是一个有用的事实,所以我在这里问这个问题.

I believe I know a FEW pieces of the puzzle, and I have a sample working .ini file from a Developer Express component, but I am unable to figure out how to put the pieces together. I think that this would be a useful fact for all Delphi component developers to know, so I'm asking this question here.

相关问题询问如何修复内置的东西.我想进一步询问如何注册自己的html帮助( .hxs, .hxc,*.hxt)文档.

A related question asks how to repair the built in stuff. I'm asking further, how to register your own html-help (.hxs,.hxc,*.hxt) documentation.

解决方案的一部分似乎是了解H2REG的语法,如下所示:

Part of the solution seems to be knowing H2REG's syntax which looks like this:

   c:\path\to\H2Reg.exe -r cmdfile=c:\path\to\MyH2Reg_Cmd.ini

该INI文件中仍然存在未知的内容,因此该文件会显示在Delphi XE6中.

A remaining unknown is what goes in that INI file, so that it shows up in Delphi XE6.

推荐答案

Embarcadero网站上有一些最小的文档(是的,它确实涉及h2reg):

There is some minimal documentation on Embarcadero's site (and yes, it does involve h2reg):

安装dexplore.exe帮助内容文件

哪个链接指向该产品网站:

Which has a link to this product site:

H2Reg

哪个具有此KB页面:

H2& Borland帮助

并不是您要找的东西,但是应该使您与您保持联系.听起来您好像是在尝试手动将帮助文件整合到DExplorer中,而不是使用现有解决方案正确安装帮助文件.

Not exactly what you are looking for, but should get you close. It sounds like you are trying to itegrate your help files into DExplorer manually instead of using a pre-existing solution to install your help files properly.

这篇关于如何手动将HTML帮助文件注册到Delphi(RAD Studio)XE6在线文档中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆