gdiplusDebugNewFix.h
资源名称:estereo2.zip [点击查看]
上传用户:fengshi120
上传日期:2014-07-17
资源大小:6155k
文件大小:1k
源码类别:
3D图形编程
开发平台:
C/C++
- #define iterator _iterator
- #ifdef _DEBUG
- namespace Gdiplus
- {
- namespace DllExports
- {
- #include <GdiplusMem.h>
- };
- #ifndef _GDIPLUSBASE_H
- #define _GDIPLUSBASE_H
- class GdiplusBase
- {
- public:
- void (operator delete)(void* in_pVoid)
- {
- DllExports::GdipFree(in_pVoid);
- }
- void* (operator new)(size_t in_size)
- {
- return DllExports::GdipAlloc(in_size);
- }
- void (operator delete[])(void* in_pVoid)
- {
- DllExports::GdipFree(in_pVoid);
- }
- void* (operator new[])(size_t in_size)
- {
- return DllExports::GdipAlloc(in_size);
- }
- void * (operator new)(size_t nSize, LPCSTR lpszFileName, int nLine)
- {
- return DllExports::GdipAlloc(nSize);
- }
- void operator delete(void* p, LPCSTR lpszFileName, int nLine)
- {
- DllExports::GdipFree(p);
- }
- };
- #endif // #ifndef _GDIPLUSBASE_H
- }
- #endif // #ifdef _DEBUG
- #include <gdiplus.h>
- #undef iterator
- //// Ensure that Gdiplus.lib is linked.
- #pragma comment(lib, "gdiplus.lib")