Files with * .rc are not updated when compiling / creating

I have a file that needs to be updated every day, linked to the rc file as follows:

docs.rc

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

I understand that it updates resources if the changes are made only in my * .rc file .... The only way I made sure that the resource was updated is to delete it, compile it, configure it, and recompile it.

Any advice, pre-compiling a command, or something else better?

Thanks!

Using Delphi XE2 Enterprise.

[edit]

Of course, I forgot this line from the project code:

 {$R 'docs.res' 'docs.rc'} 
+4
source share
2 answers

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

This will solve your problem.

+6
source

You can use the Pre-Build event and compile the rc files manually using brcc32.exe

+2
source

Source: https://habr.com/ru/post/1395561/


All Articles