Duplicate resource file

1

I'm having a project that has the following resource file directives:

{$R *.DFM}
{$R UAC.res}

After I've copied a portion of the project into another folder, I get the following error after compiling:

  

"[DCC Error] E2161 Warning: Duplicate resource: Type 24   (user-defined), ID 1; File D: \ Project \ EmailRB \ EMAILRB.res resource   kept; file UAC.res resource discarded. "

EMAILRB.res is created when compiling the project and UAC.res , it was a file that I created to work around a Windows UAC limitation.

How do I solve this problem?

    
asked by anonymous 08.10.2018 / 15:13

1 answer

2

Go to the project source, (Project-> View Source menu), and verify that the {$R *.res} directive has not been defined.

If all the .res files are set it will be added automatically without the need to declare elsewhere.

When compiling the unit of the project it will attach all the .res and when compiling the units it is appending the declared ones, ie there is duplication!

Just remove the UAC.res from the declaration.

    
08.10.2018 / 17:03