GDI+ new Bitmap 没有进入构造函数解决方案

GDI+ new Bitmap 没有进入构造函数Bitmap *pBmp NULLpBmp new Bitmap(E:\\FourWnd.bmp)int nWidth

GDI+ new Bitmap 没有进入构造函数
Bitmap *pBmp = NULL;
pBmp = new Bitmap("E:\\FourWnd.bmp");
int nWidth = m_pBmp->GetWidth();
int nHeight = m_pBmp->GetHeight();

pBmp还是为NULL,调试根本没进入构造函数,是怎么回事?

[解决办法]
GDI+ 使用new的时候一般把

C/C++ code
#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif