[fpc-devel] Enabling use of {$R *.dfm} on Windows

Sergei Gorelkin sergei_gorelkin at mail.ru
Mon Jul 23 09:20:41 CEST 2007


Hello,

I have written - and submit for your judgement - a small utility that 
allows to use {$R *.dfm} directives on Windows. It is somewhat like a 
fpcres utility that exists for ELF platforms.

How to use:

1) compile :)
2) rename windres.exe from binutils package to windres1.exe
3) replace windres.exe with compiled binary.

How does it work:

It serves as a proxy for windres.exe. If input file is not a component 
stream, it simply passes that file to original windres. Otherwise, it 
optionally converts text stream into binary format, then dumps it to a 
temporary file (.rc format that contains a hex dump) and passes that 
temporary file to original windres to compile. Ideally it could write 
COFF file directly, but now it is just a proof of concept.

Is such thing useful and can it be eventually included into mainstream?

Regards,
Sergei

-------------- next part --------------
A non-text attachment was scrubbed...
Name: windr.zip
Type: application/x-zip-compressed
Size: 2460 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20070723/59ac0929/attachment.bin>


More information about the fpc-devel mailing list