[lazarus] Win32 FPC and resource files (fwd)

Marco van de Voort marcov at stack.nl
Wed Jan 1 18:49:04 EST 2003


I received this from one of GPC's more friendly people:
I put the attached file online on

http://www.stack.nl/~marcov/joinres.pas

If it really is a problem, the FPC team will of course some how integrate it
with the current distributions. I post here mainly because there might be people 
currently experimenting with win32 resources.

----- Forwarded message from Prof A Olowofoyeku (The African Chief) -----

From: Prof A Olowofoyeku (The African Chief) <african_chief at bigfoot.com>
Organization: ChiefSoft
To: marcov at stack.nl
Date: Wed, 01 Jan 2003 21:06:25 -0000
Subject: Win32 FPC and resource files
Content-Description: Mail message body

Hi Marco

I have solved a problem that has plagued the Win32 versions of FPC and 
GPC and GCC for a long time - the problem of linking multiple binary 
resource files. FPC happily converts the resource files with windres 
but of course any attempt to link more than one of them fails. Attached 
is a small program that combines any number of binary resource files 
into a single one - which can then be converted into COFF format by 
windres and then linked. I intend to do all this automatically and 
transparently in my own compiler front end for GPC. I am now submitting 
this code for you FPC guys to use. Please pass it on to the appropriate 
person. The secret of combining more than one file is that all other 
ones (other than the first) have to be copied from offset 32 - 
otherwise, it won't work. So a simple "copy /b" will not work.

Hope you guys find it useful!

Best regards, The Chief
--------
Prof. Abimbola A. Olowofoyeku (The African Chief) 
web:  http://www.bigfoot.com/~african_chief/


----- End of forwarded message from Marco van de Voort -----






More information about the Lazarus mailing list