Mattias Gaertner wrote:
On Wed, 13 Sep 2006 21:47:11 +0200
Vincent Snijders <[EMAIL PROTECTED]> wrote:


Mattias Gaertner wrote:

On Wed, 13 Sep 2006 20:54:05 +0200
BTW,
How do you make sure, that the $R is only used under windows?
If you create a project under windows with version info and compile
it under linux, the same source must compile without changing the
source. With {$IFDEF MSWindows}{$R projectname.res}{$ENDIF} ?

I think it is better to use
{$IFDEF Windows}{$R projectname.res}{$ENDIF}

MSWindows is not defined for wince.


If version info works for wince too, then the version info has a bug.
It only works for TargetOS='win32' (hardcoded).


If this is the case, then {$IFDEF win32} should be used, because MSWindows is also defined for win64.

Vincent

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to