If you add resources to your project, Delphi will create a Resource.rc file. The Delphi IDE will also automatically compile it into the .dres file. This .rc file is always built with double backslashes in path names.
Using a VCS I find it stupid to check in the .dres file, as my build system can take care of building it from the .rc file. If the resource contains images, the size can be quite big. But to the best of my knowledge this is not done by the command line compiler.
So I have to us either BRCC32.exe or RC.exe before compiling the exe. And here is the problem:
BRCC32 doesn't like the double backslashes in the Resource.rc file.
RC like double backslashes, but when linking I get "Unsupported 16bit resource in file".
The brute force method that I have used for some time, is to "clean" the backslashes before checking in the .rc file to VCS and use BRCC32. Gets boring :-(
Is there a better way?