如何修复 Delphi 2010 IDE 中损坏的上下文相关帮助

发布于 2024-10-11 01:34:40 字数 311 浏览 7 评论 0原文

工作了一段时间后,我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

残花月 2024-10-18 01:34:41

以下批处理文件适用于我(无需关闭 Delphi):

REM Kill running instances of Microsoft Document Explorer
taskkill /f /im dexplore.exe

REM Go to the Delphi Help Files folder
IF EXIST  "%programfiles%\Embarcadero\RAD Studio\8.0\Help\Doc" PUSHD "%programfiles%\Embarcadero\RAD Studio\8.0\Help\Doc"
IF EXIST  "%programfiles(x86)%\Embarcadero\RAD Studio\8.0\Help\Doc" PUSHD "%programfiles(x86)%\Embarcadero\RAD Studio\8.0\Help\Doc"

REM Unregister Delphi Help Files
h2reg.exe -u

REM Register Delphi Help Files
h2reg.exe -r

The following batch file works for me (without closing Delphi):

REM Kill running instances of Microsoft Document Explorer
taskkill /f /im dexplore.exe

REM Go to the Delphi Help Files folder
IF EXIST  "%programfiles%\Embarcadero\RAD Studio\8.0\Help\Doc" PUSHD "%programfiles%\Embarcadero\RAD Studio\8.0\Help\Doc"
IF EXIST  "%programfiles(x86)%\Embarcadero\RAD Studio\8.0\Help\Doc" PUSHD "%programfiles(x86)%\Embarcadero\RAD Studio\8.0\Help\Doc"

REM Unregister Delphi Help Files
h2reg.exe -u

REM Register Delphi Help Files
h2reg.exe -r
忆离笙 2024-10-18 01:34:41

我遇到了同样的问题,但 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. :)

〃安静 2024-10-18 01:34:41

使用 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.

执手闯天涯 2024-10-18 01:34:41

尝试重新安装 Microsoft Document Explorer

Try reinstall Microsoft Document Explorer

呆萌少年 2024-10-18 01:34:40

您也许可以通过重建帮助索引文件来使事情变得更好。

打开命令提示符,然后导航到 $(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 run H2Reg -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.

メ斷腸人バ 2024-10-18 01:34:40

我知道这个问题的 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).

温柔戏命师 2024-10-18 01:34:40

在 Delphi XE 中,我使用以下方法解决了问题:

  • 退出 Delphi XE
  • 导航到“Embarcadero\RAD Studio\8.0\Help\Doc”文件夹
  • 将文件 rad.hxs、vcl.hxs 和 codeex.hxs 移动到另一个文件夹
    (如果 dplore.exe 正在运行,您可能必须停止它)
  • 启动 Delphi XE 并再次尝试 F1 帮助(对我来说,它还没有工作)
  • 退出 Delphi XE
  • 如果正在运行,则停止 dplore.exe
  • 将三个文件复制回“Embarcadero” \RAD Studio\8.0\Help\Doc"
  • 重新启动 Delphi XE 并再次尝试 F1 帮助(现在它应该按预期工作)

In Delphi XE i solved the problem using this approach:

  • Exit Delphi XE
  • Navigate to "Embarcadero\RAD Studio\8.0\Help\Doc" folder
  • Move the files rad.hxs, vcl.hxs and codeex.hxs to another folder
    (If dexplore.exe is running you may have to stop it)
  • Start Delphi XE and try F1 help again (For me it did not work yet)
  • Exit Delphi XE
  • Stop dexplore.exe if it is running
  • Copy the three files back to "Embarcadero\RAD Studio\8.0\Help\Doc"
  • Restart Delphi XE and try F1 help again (Now it should work as intended)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文