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

Fixing the "Duplicate resource" error

By , About.com Guide

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)

Explore Delphi Programming
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. 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.