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