[fpc-pascal] {$R file} support on non-Windows targets

Giulio Bernardi ugilio at gmail.com
Wed Jul 9 20:17:09 CEST 2008


Felipe Monteiro de Carvalho ha scritto:
> On Wed, Jul 9, 2008 at 2:20 PM, Michael Van Canneyt
> <michael at freepascal.org> wrote:
>> All targets in 2.3.1 now support {$R file} syntax.
> 
> So I assume we have a cross-platform resource compiler now, so is
> windres unnecessary? Was pre-processing also implemented?

No. To compile .rc files to .res you still need windres. In general you 
can compile and run it fine on little endian machines, but it doesn't 
work (at least, it didn't work 6 months ago, don't know if newer 
versions are endian safe) on big endian machines.
So there is still no .rc compiler. However the 2.3.1 fpcres is able to 
compile dfm/lfm/xfm files.

> 
> Also, how do you access the resources? With TResourceStream?

With RTL functions like FindResource, LoadResource and so on. 
TResourceStream uses these functions.

Giulio



More information about the fpc-pascal mailing list