On 26/03/2008, Michael Van Canneyt <[EMAIL PROTECTED]> 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/
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to