classes.pp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. $Id$
  3. This file is part of the Free Component Library (FCL)
  4. Copyright (c) 1998 by Michael Van Canneyt and Florian Klaempfl
  5. Classes unit for win32
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {$mode objfpc}
  13. { determine the type of the resource/form file }
  14. {$define Win16Res}
  15. unit Classes;
  16. interface
  17. uses
  18. rtlconst,
  19. sysutils,
  20. types,
  21. typinfo,
  22. windows;
  23. {$i classesh.inc}
  24. implementation
  25. uses
  26. sysconst;
  27. { OS - independent class implementations are in /inc directory. }
  28. {$i classes.inc}
  29. initialization
  30. CommonInit;
  31. {$ifndef ver1_0}
  32. InitCriticalSection(SynchronizeCritSect);
  33. ExecuteEvent := RtlEventCreate;
  34. SynchronizeMethod := nil;
  35. {$endif}
  36. finalization
  37. CommonCleanup;
  38. {$ifndef ver1_0}
  39. DoneCriticalSection(SynchronizeCritSect);
  40. RtlEventDestroy(ExecuteEvent);
  41. {$endif}
  42. end.
  43. {
  44. $Log$
  45. Revision 1.7 2005-02-06 13:06:20 peter
  46. * moved file and dir functions to sysfile/sysdir
  47. * win32 thread in systemunit
  48. Revision 1.6 2004/12/23 09:42:42 marco
  49. * first tthread.synchronize support (merged neli's patches)
  50. Revision 1.5 2004/01/22 17:11:23 peter
  51. * classes uses types to import TPoint and TRect
  52. Revision 1.4 2004/01/13 18:04:25 florian
  53. * make win32 fixed
  54. Revision 1.3 2004/01/10 19:35:18 michael
  55. + Moved all resource strings to rtlconst/sysconst
  56. Revision 1.2 2003/10/07 16:20:21 florian
  57. * win32 now uses aliases from the windows unit for types like trect
  58. Revision 1.1 2003/10/06 21:01:07 peter
  59. * moved classes unit to rtl
  60. Revision 1.1 2003/10/06 20:33:58 peter
  61. * classes moved to rtl for 1.1
  62. * classes .inc and classes.pp files moved to fcl/classes for
  63. backwards 1.0.x compatiblity to have it in the fcl
  64. Revision 1.4 2002/10/14 19:46:13 peter
  65. * threading switch
  66. Revision 1.3 2002/09/07 15:15:29 peter
  67. * old logs removed and tabs fixed
  68. }