The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,262 other subscribers

Stop Delphi generating .res files for unit test applications

Posted by jpluimers on 2018/06/27

By default, Delphi always generates .res resource files when compiling a project.

There are two things you need to change to turn this off; the first is on by default, the second could be your own change:

  1. Remove the {$R *.res} from your .dpr file and turn “Runtime Themes” to “None” from the default “Enable runtime themes” under “Target” settings “All configurations – 32-bit Windows platform” and “All configurations – 64-bit Windows platform”
  2. Disable “Include version information in project” under “Target” settings “All configurations – 32-bit Windows platform” and “All configurations – 64-bit Windows platform”

–jeroen

PS:

Thomas Mueller (dummzeuch) commented on G+ :

First, turn off these options, and only afterwards change the DPR. Because after removing the *.res line, some of these options will be disabled, e.g. version information.

 

One Response to “Stop Delphi generating .res files for unit test applications”

  1. Well yes, you can do that (even modify the source to remove the res directive), but WHY? What is it good for?

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.