DCC 提示:H2161 警告:重复资源:类型 24(用户定义),ID 1;文件资源...保留;文件 ...\WindowsXP.res 资源被丢弃

发布于 2024-12-22 10:01:06 字数 247 浏览 2 评论 0原文

在 Delphi XE2 中链接我的项目时出现以下错误。重新创建 .dproj 文件没有帮助。

[DCC 提示] H2161 警告:重复资源:类型 24(用户定义),ID 1;文件资源<文件名>.res 已保留;文件 c:\program files\embarcadero\rad studio\9.0\lib\Win32\release\WindowsXP.res 资源被丢弃。

如何修复?感谢您的帮助!

Get the following error while linking my project in Delphi XE2. Recreating of .dproj file doesn't help.

[DCC Hint] H2161 Warning: Duplicate resource: Type 24 (user-defined), ID 1; File resource <filename>.res kept; file c:\program files\embarcadero\rad studio\9.0\lib\Win32\release\WindowsXP.res resource discarded.

How to fix it? Thanks for the help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

无可置疑 2024-12-29 10:01:06

您有多个应用程序清单链接到该应用程序。只能有一个,因此必须丢弃一些。现代 Delphi 版本默认根据“运行时主题”项目选项链接清单。您可能有另一个链接的清单,可能可以追溯到您在早期版本的 Delphi 中开发该项目时。您是否使用过 TXPManifest 组件?

您可以删除显式链接的清单。或者您可以禁用运行时主题设置并保留显式清单。后一种方式你可以控制清单。就我个人而言,这就是我这样做的方式,因为我确实需要精确控制清单中的内容。

You've got more than one application manifest linked to the application. There can be only one and so some have to be discarded. Modern Delphi versions link a manifest by default based on the "Runtime themes" project option. You possibly have another manifest linked, perhaps dating from when you developed the project in an earlier version of Delphi. Are you using the TXPManifest component by any chance?

You can remove the manifest that you are explicitly linking. Or you can disable the runtime themes setting and retain the explicit manifest. That latter way you are in control of the manifest. Personally that is the way I do it because I do need to have control over precisely what goes in the manifest.

过期以后 2024-12-29 10:01:06

我遇到了同样的问题,并通过谷歌到达了这个页面。

从uses-clause 中删除XPMan 修复了这个问题。

通过“在文件中查找”并搜索词“xpman”找到了罪魁祸首。感谢罗布·肯尼迪在对大卫的回答的评论中提出这一点。

I had the same problem, and arrived on this page via Google.

Removing XPMan from the uses-clause fixed it.

Found the culprit via "find in files" with search term "xpman". Thanks for Rob Kennedy for suggesting this in the comment to David's answer.

堇色安年 2024-12-29 10:01:06

感谢您的帮助。
对我来说,以下内容有帮助:

{$ R * .RES} from project source removed

Thanks for your help.
For me, the following has helped:

{$ R * .RES} from project source removed
知足的幸福 2024-12-29 10:01:06

从项目源中删除 {$R *.res} 会有所帮助。 {$R *.res} 在 Delphi XE2 中受到限制吗?

Removing {$R *.res} from project source helps. {$R *.res} is restricted in Delphi XE2?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文