[fpc-devel] THandle and 64bit platforms

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Tue Dec 21 00:15:19 CET 2004



On Tue, 21 Dec 2004, Marc Weustink wrote:

> >This will take some work :-)
> 
> For adapting Lazarus I've no problems with it. For ppl wanting to port apps 
> I see more problems. Especially when a shorter version of it exists. 
> Besides I don't know what other Lazarus devels think

People who want to write portable apps should definitely not make any
assumptions about Thandle. Since TLCLhandle=Handle on windows, this 
should not really be a problem ?


> >That said, the RTL should also avoid confusion with the Windows/Delphi
> >THandle type, and introduce a cross-platform and opaque TFileHandle type.
> >Which will happen to be equal to THandle on 32-bit windows.
> >On 32-bit Linux, the definition of THandle will then also equal TFileHandle.
> >
> >This will also take some work :-)
> >
> >The 2.000.000.000 EUR question is then, who will do this work? ;-)
> 
> I did some counting:
> 
> Rtl: 489 times (excluding win32, including os2, including comments)
> Lazarus: 105 times (exluding win32 and docs)
> 
> Hmm.....  I can give you an answer :)

But I cannot give you 2.000.000.000 EUR :)

Michael.




More information about the fpc-devel mailing list