On Sat, 4 Aug 2007, Giulio Bernardi wrote:
> Sorry if I post this message here, but fpc-devel seems to be down.
>
> I am curios about resources support, after having read some messages in this
> mailing list
> (like the Sergei ones).
> Tell me if I understood right:
>
> Win32 case:
> when a {$R filename.res} is fond, fpc calls windres to convert the .res file
> into
> a .o file, which then gets linked as any other object file.
> At runtime, resources can be used via winapi calls.
>
> Elf32 case:
> Windres is called as well? Does it output elf objects instead of coff ones?
> Or is ld able
> to link coff objects to produce elf executables?
> At runtime, there is some kind of winapi emulation in system unit so that
> resources can
> be used.
On elf32, another tool (fpcres, shipped with FPC) is called to convert .res
files
to .o files. Windres is used to create the .res file from e.g. .rc files.
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives