[Lazarus] RE : [fpc-pascal] Poor man's resource code available and CheckRide update: now with editor

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jan 31 10:26:23 CET 2012


On Tue, 31 Jan 2012 10:11:47 +0100
"Ludo Brands" <ludo.brands at free.fr> wrote:

> > 
> > What's the advantage compared to lrs files?
> > 
> > Mattias
> > 
> A while ago I also looked into the different resource formats to include
> binary data (a custom installer). At that time I rejected lrs because binary
> data where stored as ascii, escaping non ascii chars as #iii. The result was
> a a huge file.

The lrs file is a source file, the lrs data is compiled as binary into
the exe. The lrs has the overhead that it copies the data onto the heap.
fpcres can sometimes avoid that. 
AFAIK fpcres does not yet support any kind of binary.


> I settled for the windows .res format which is supported by
> fpc cross platform and stores binary data as binary data. A minor
> disadvantage is the custom build script using windres to compile the
> resources on non windows systems. Windres can be difficult to find on some
> systems (typically found in mingw cross buildutils) or has to be made from
> source.


Mattias




More information about the Lazarus mailing list