1. Home
  2. Computing & Technology
  3. Delphi Programming

Fixing the "Duplicate resource" error

By Zarko Gajic, About.com

If you are trying to link custom resources to your Delphi application, you mighz get the "Duplicate resource" error. Here's how to deal with it.

The projects resource file name is generated by the Delphi IDE wizard, and should not be modified. Delphi generated resources ("{$R *.DFM} for example") contain any imagesyou placed on a buttons, for example.

To add additional resources to your project, create a separate resource file with a unique name that does not conflict with either the project or any of the unit names.

Delphi tips navigator:
» How to (bulk) import data from an ASCII (.txt) file into a DB using ADO
« How to allow column resize but disable movement (in TDBGrid)

Zarko Gajic
Guide since 1998

Zarko Gajic
Delphi Programming Guide

Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Coding Delphi Applications
  5. Delphi Tips and Tricks
  6. 2005 Delphi Tips
  7. Fixing the "Duplicate resource" error in Delphi

©2009 About.com, a part of The New York Times Company.

All rights reserved.