GdiPlusBase.h 830 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //Download by http://www.NewXing.com
  2. /**************************************************************************\
  3. *
  4. * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
  5. *
  6. * Module Name:
  7. *
  8. * GdiplusBase.h
  9. *
  10. * Abstract:
  11. *
  12. * GDI+ base memory allocation class
  13. *
  14. \**************************************************************************/
  15. #ifndef _GDIPLUSBASE_H
  16. #define _GDIPLUSBASE_H
  17. class GdiplusBase
  18. {
  19. public:
  20. void (operator delete)(void* in_pVoid)
  21. {
  22. DllExports::GdipFree(in_pVoid);
  23. }
  24. void* (operator new)(size_t in_size)
  25. {
  26. return DllExports::GdipAlloc(in_size);
  27. }
  28. void (operator delete[])(void* in_pVoid)
  29. {
  30. DllExports::GdipFree(in_pVoid);
  31. }
  32. void* (operator new[])(size_t in_size)
  33. {
  34. return DllExports::GdipAlloc(in_size);
  35. }
  36. };
  37. #endif