这是由于MFC在debug模式定义了重载的调试new。但Gdiplus并不支持MFC的定义。
最佳解决:使用全局的new。例子:注意new前的全局作用域运算符::
Gdiplus::Bitmap* pBitmap = ::new Gdiplus::Bitmap(bmp.bmWidth, bmp.bmHeight, PixelFormat32bppPARGB);
其他解决:临时取消MFC的定义:
//#ifdef _DEBUG
//#define new DEBUG_NEW
//#endif