如何解决此delphi 7编译错误-“重复资源”? [英] How can I fix this delphi 7 compile error - "Duplicate resource(s)"

查看:262
本文介绍了如何解决此delphi 7编译错误-“重复资源”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译继承的Delphi 7项目,但出现此错误:

I'm trying to compile a Delphi 7 project that I've inherited, and I'm getting this error:


[错误]警告。资源重复:

[错误]类型2(BITMAP),ID编辑:

[错误]文件C:[路径缩短] \common\CRGrid.res保留资源;文件c:> common\raptree.RES资源被丢弃。

[Error] WARNING. Duplicate resource(s):
[Error] Type 2 (BITMAP), ID
[Error] File C:[path shortened]\common\CRGrid.res resource kept; file c:\common\raptree.RES resource discarded.

它说警告,但实际上是一个错误-编译不会

It says warning, but it's actually an error - compilation does not complete.

看起来好像两个组件-CRGrid和RapTree-正在发生碰撞。

It looks like two components - CRGrid and RapTree - are colliding somehow. Does anyone have any ideas on how to fix this?

当然,除了从项目中删除一个组件之外,还有其他想法。

Other than removing one of components from the project, of course.

推荐答案

尝试启动您的资源编辑器(我很确定Delphi附带了一个)并打开文件。检查这两种资源中有哪些位图资源,看看哪些可以重复。

Try firing up your resource editor (I'm pretty sure Delphi comes with one) and open the files. Check what bitmap resources are in the two, see which can be the duplicate.

如果需要保留这两种资源,则需要重新编号其中之一。

If you need to keep both resources, you need to renumber one of them.

这篇关于如何解决此delphi 7编译错误-“重复资源”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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