Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

files from *.rc are not refreshed when compiling/building

Tags:

rc

delphi

I have a file that needs to be refreshed every days, linked into a rc file this way :

docs.rc

  file RCDATA "C:\folder\myfile.ext"

I understand that it refreshes the resources itself if changes are made in my *.rc file... only. The only way i found to be sure that the resource is refreshed is removing it, compiling, setting it back and compiling again.

Any piece of advice, pre-compiling command or anything better ?

Thanks !

Using Delphi XE2 Enterprise.

[edit]

of course i forgot this line from project code :

{$R 'docs.res' 'docs.rc'}
like image 631
Darkendorf Avatar asked Feb 21 '23 13:02

Darkendorf


1 Answers

Open your project. Go to Project Menu then select Resources and Images item. Then add your resources to the list instead of RC file.

It will solve your problem.

like image 63
Vahid Nasehi Avatar answered Mar 07 '23 22:03

Vahid Nasehi