2
0

classes.pp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. This file is part of the Free Component Library (FCL)
  3. Copyright (c) 1998-2006 by Michael Van Canneyt and Florian Klaempfl
  4. Classes unit for winx64
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {$mode objfpc}
  12. { determine the type of the resource/form file }
  13. { $define Win16Res}
  14. unit Classes;
  15. interface
  16. uses
  17. rtlconsts,
  18. sysutils,
  19. types,
  20. {$ifdef FPC_TESTGENERICS}
  21. fgl,
  22. {$endif}
  23. typinfo,
  24. windows;
  25. type
  26. TWndMethod = procedure(var msg : TMessage) of object;
  27. function MakeObjectInstance(Method: TWndMethod): Pointer;
  28. procedure FreeObjectInstance(ObjectInstance: Pointer);
  29. function AllocateHWnd(Method: TWndMethod): HWND;
  30. procedure DeallocateHWnd(Wnd: HWND);
  31. {$i classesh.inc}
  32. implementation
  33. uses
  34. sysconst;
  35. { OS - independent class implementations are in /inc directory. }
  36. {$i classes.inc}
  37. function MakeObjectInstance(Method: TWndMethod): Pointer;
  38. begin
  39. runerror(211);
  40. end;
  41. procedure FreeObjectInstance(ObjectInstance: Pointer);
  42. begin
  43. runerror(211);
  44. end;
  45. function AllocateHWnd(Method: TWndMethod): HWND;
  46. begin
  47. runerror(211);
  48. end;
  49. procedure DeallocateHWnd(Wnd: HWND);
  50. begin
  51. runerror(211);
  52. end;
  53. initialization
  54. CommonInit;
  55. finalization
  56. CommonCleanup;
  57. end.