如何修复 Delphi 2010 IDE 中损坏的上下文相关帮助
工作了一段时间后,我的 D2010 帮助系统坏了。
突出显示 TStringList 等关键字并按 F1 会出现 消息“找不到上下文帮助。”
将光标置于属性中的属性字段(如 ModalResult) 编辑器并按 F1 显示沙漏,仅此而已。
单击 IDE 的主菜单 Help,然后单击 Delphi Help。我 可以在搜索字段中输入 TStringList(在 Microsoft 文档 出现的资源管理器,加载了“新增功能 - Embarcadero RAD Studio”) 并得到适当的结果。
有人对如何解决这个问题有什么建议吗?
After working for quite some time, my D2010 help system broke.
Highlighting a keyword like TStringList and hitting F1 results in the
message "No help found for context."
Putting the cursor in a property field (like ModalResult) in the property
editor and hitting F1 shows an hourglass and that's all.
Clicking on the IDE's main menu Help and then Delphi Help works. I
can type TStringList into the search field (in the Microsoft Document
Explorer that appears, loaded with "What's New - Embarcadero RAD Studio")
and get appropriate results.
Anyone have any suggestions on how to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
以下批处理文件适用于我(无需关闭 Delphi):
The following batch file works for me (without closing Delphi):
我遇到了同样的问题,但 H2Reg 修复从未对我起作用。 :( 我尝试以管理员身份运行 Delphi RAD Studio XE2,即使我的用户帐户已设置为管理员,并测试了 F1,包括上下文帮助。一切都按预期工作:) 然后,我关闭了 Delphi,关闭了以管理员身份运行选项,重新打开Delphi,帮助完美运行。 :)
I experienced the same problem, but the H2Reg fix never worked for me. :( I tried running Delphi RAD Studio XE2 as Administrator, even though my user account was already set to Administrator, and tested F1 including the context help. Everything worked as expected :) Afterwards, I closed Delphi, switched off the Run as Administrator option, reopened Delphi, and the help worked perfectly. :)
使用 h2reg.exe 的方法不适用于我的情况(RAD Studio XE3)。
我花了几个小时才找到解决方案。
我的问题的根本原因是 Microsoft Document Explorer 2008 损坏。
我尝试从控制面板 -> 修复它卸载应用程序。
当然,您可以从许多来源删除它并重新安装它,包括 RAD studio 的帮助系统。
如果其他方法不起作用,请尝试此方法。
The methods of using h2reg.exe did not work for my case (RAD Studio XE3).
It costs me several hours to find out my solution.
The root cause of my problem is the broken Microsoft Document Explorer 2008.
I try to repair it from Control Panel -> Uninstall Application.
Surely you can remove it and install it back from many source, including the help system of RAD studio.
Try this if other ways don't work.
尝试重新安装 Microsoft Document Explorer
Try reinstall Microsoft Document Explorer
您也许可以通过重建帮助索引文件来使事情变得更好。
打开命令提示符,然后导航到 $(BDS)\Help\Doc 文件夹。运行
H2Reg -u
取消注册现有帮助主题,然后运行 H2Reg -r
重新注册。然后启动帮助,您应该会看到一个对话框,显示正在对内容进行索引。如果您想了解有关 H2Reg.exe 的更多信息,只需从命令行运行不带参数即可;它将显示一个对话框,其中包含有关命令行开关及其用途的详细信息。您还应该浏览 H2Reg.ini,因为它对每个部分都有注释以及它对事物的影响。
而且,顺便说一句,XE 中的帮助已经大大改进,尽管它还有很长的路要走。
You can maybe make things better by rebuilding the help index files.
Open a command prompt, and navigate to your $(BDS)\Help\Doc folder. Run
H2Reg -u
to unregister the existing help topics, and then runH2Reg -r
to re-register. THen launch help, and you should get the dialog that says it's indexing content.If you want more info about H2Reg.exe, simply run it without parameters from the command line; it will display a dialog with details about the command line switches and what they do. You should also scan throuh H2Reg.ini, as it has comments on each section and what it does to affect things.
And, as an aside, the help in XE is vastly improved, although it still has a way to go.
我知道这个问题的 3 个原因:
1 - 由于某种原因,如果在 rad studio 尝试加载帮助时互联网出现故障,帮助会崩溃,您将需要关闭并重新打开 delphi。
2 - 另一个原因是您的帮助可能已损坏(例如,当您安装 Microsoft 的一些修复程序(例如 Windows 7 sp1)时,就会发生这种情况)。在这种情况下,唯一的方法是重新安装帮助(查看 Delphi)。
3 - 有时当您在delphi尝试刷新编辑器时按F1时会发生这种情况(因此请避免它)。
您还需要确保您拥有所有delphi 的补丁(帮助补丁纠正了很多问题)。
但我会告诉你:delphi帮助系统真的很糟糕(不是帮助,而是它与Delphi的集成)。
I know 3 causes for this problem:
1 - For some reason, if you internet fails while rad studio is trying to load help the help crashes and you will need to close and reopen delphi.
2 - Antoher reason is that you can have a corrupted help (it happens when you install some fixes from microsoft as the windows 7 sp1 for example). The only way in this case is to reinstall the help (check it out Delphi).
3 - It happens sometimes when you hit F1 while delphi is trying to refresh the editor (so avoid it).
You also need to be sure you have all delphi's patches (the help patches correct a lot of issues).
But i will tell you: the delphi help system is really bad (not the help, but its integration with Delphi).
在 Delphi XE 中,我使用以下方法解决了问题:
(如果 dplore.exe 正在运行,您可能必须停止它)
In Delphi XE i solved the problem using this approach:
(If dexplore.exe is running you may have to stop it)