tags:

views:

1053

answers:

3

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

[Error] WARNING. Duplicate resource(s):
[Error]   Type  2 (BITMAP), ID EDIT:
[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.

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.

+1  A: 

You'll need to go into the components and rename one of the resources and then update the component code to use the new name. It's a pain, but that's all you can do.

Daniel
+2  A: 

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.

jfs
+1  A: 

try this: Fixing the "Duplicate resource" error

Aidenn