Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi .res file changer

I'm looking for a ready-to-use piece of code that would be able to read and modify Delphi .res files. The thing is that I need to create an application that will be compiling many Delphi projects at once (using the dcc32.exe file). However, it is necessary for me to change file version and language before compilation, and as far as I know, I have to modify the .res file to do that.

Have you come across any code that would give me an interface to .res files allowing me to modify the data contained in it? The thing is that I want to change only those two pieces of information keeping the rest unchanged. This is why I can't compile my own .res file based on a script.

An application executed from a command line would also be OK if it allows to be called with parameters and does what I need it to do.

Thank you very in advance!

like image 412
Mariusz Schimke Avatar asked Sep 27 '10 09:09

Mariusz Schimke


1 Answers

For all things .res, look at Colin Wilson's "XN Resource Editor", for which he provides the source code: http://www.wilsonc.demon.co.uk/d10resourceeditor.htm And probably all you need is his resource utility library: http://www.wilsonc.demon.co.uk/d9resourceutils.htm I haven't used this source, but if I needed it, that's the first place I'd look. His resource editor is very useful, btw.

like image 133
Chris Thornton Avatar answered Oct 09 '22 12:10

Chris Thornton