gpt4 book ai didi

delphi - 恢复Delphi环境路径

转载 作者:行者123 更新时间:2023-12-01 21:22:07 25 4
gpt4 key购买 nike

在 Delphi 10 Seattle 中,我单击了 Options->Library->LibraryPath 中的“删除无效路径”按钮,它弄乱了一些默认环境路径。有办法恢复默认设置吗?

例如:

$(BDSLIB)\$(平台)\
$(BDSCOMMONDIR)\Dcp\$(平台)

(这些无效)

最佳答案

有默认和内置的方式来恢复您的设置。这种方式可用多年(超过15年)

使用命令行参数-rXXX运行Delphi

bds.exe -rXXX。会发生什么:

The name you provide after -r is a registry hive. If that registry hive does not exist, the IDE create a brand new registry hive with all the defaults and uses it. Because this takes you back to all the default settings, it fixes most start up problems with the IDE. Note that because custom controls are not part of the defaults, this technique will result in your IDE not having any custom controls you have installed previously. Custom controls are the most common cause of this error, so you will probably want to add any you have one at a time and test.

Your new registry hive will be stored in the registry at HKCU\Software\Embarcadero\name\version. Your current settings for the IDE are stored at HKCU\Software\Embarcadero\BDS\version. You can compare the two registry hives using regedit to see what is different.

您可以从新环境恢复您的库/浏览路径,方法是从 XXX 环境复制它们并将其粘贴到常规环境中。

了解更多信息 http://docwiki.embarcadero.com/RADStudio/Berlin/en/IDE_Command_Line_Switches_and_Options以及 http://support.embarcadero.com/es/article/42597

关于delphi - 恢复Delphi环境路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38798372/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com