我这样:
Bitmap abc(CStringW(cordpath));
就正确,能通过编译。而我这样:
new Bitmap(CStringW(cordpath));
就不正确,编译错误提示是:error C2660: 'Gdiplus::GdiplusBase::operator new' : function does not take 3 arguments这错误提示的意思似乎是:函数不能带三个参数。但是我明明只有一个参数嘛!!
Bitmap abc(CStringW(cordpath));
就正确,能通过编译。而我这样:
new Bitmap(CStringW(cordpath));
就不正确,编译错误提示是:error C2660: 'Gdiplus::GdiplusBase::operator new' : function does not take 3 arguments这错误提示的意思似乎是:函数不能带三个参数。但是我明明只有一个参数嘛!!
不使用GDI+的new操作#pragma warning( push, 3 )
#pragma push_macro("new")
#undef new
#include <gdiplus.h>
#pragma pop_macro("new")
#pragma warning( pop )