I was underway doing just that - only I didn't know "fpc" was the definition
I was looking for :-)  

But in doing this I realize that there are quite a bit of differences in the
RTL units and the locations of code I need in my base units compared to
Borland.

I was hoping for a direct compile of my applications.  I realize due to
FPC's cross-platform support (YEA!) I will not get that - unless I get
involved in porting all of my necessary functions to FPC.  And/Or,
discerning already developed units and modify my existing code to use them
to obtain cross platform support.

This is very disorientating but SO WORTH IT.  

Thanks!


-----Original Message-----
From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED]

Sent: Monday, November 27, 2006 11:02 AM
To: [email protected]
Subject: Re: [lazarus]

On 11/27/06, Andrew Brunner <[EMAIL PROTECTED]> wrote:
> I'm having a problem integrating one of my own Delphi 2006 Units.  It 
> uses TFormatSettings located in the RTL SysUtils.Pas.  I tried to add 
> the code to the .fpc\2.0.4\source\rtl\win32\SysUtils.pp but I can't 
> figure out how to get Lazarus to rebuild the RTL source of FPC 2.0.4.

It's probably better to use IFDEFs around the code that doesn't work on fpc.
I don't think you can simply copy code from delphi RTL.

{$ifndef fpc}
 ...
{$else}
  fpc equivalent code
{$endif}

I don't know what is the fpc equivalent code. For a quick test you can
simply not write anything on the fpc part.

--
Felipe Monteiro de Carvalho

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

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

Reply via email to