[fpc-pascal] Windows unit and SyncObjs unit clash
Graeme Geldenhuys
graemeg.lists at gmail.com
Wed Mar 26 11:57:29 CET 2008
On 26/03/2008, Michael Van Canneyt <michael at freepascal.org> wrote:
>
> Yes, use fully qualified names.
>
> windows.tcriticalsection.
> syncobjs.tcriticalsection.
That should work....
> For lower level stuff, you should use TRTLCriticalSection, never TCriticalSection.
>
> It has the advantage of being portable.
>
> I'm surprised you actually use the windows unit. That is Evil(tm).
The code in question is the tiOPF project which is shared with Delphi
& FPC users. They (Delphi users) are all out of luck with the
cross-platform abilities of FPC, so we have to use what both compilers
support. For Delphi, that would be the 'Windows' unit.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list