On Tue, 31 Jan 2012 10:11:47 +0100
"Ludo Brands" <[email protected]> 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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to