今天居然编译的时候居然遇到这个错误。
Gdiplus::Bitmap* bmp=new Gdiplus::Bitmap(100,200);
提示error C2660:"Gdiplus::GdiplusBase::operator new":函数不能接受3个参数。
查了一下,
CPP 文件前面的 new 宏(#define new DEBUG_NEW)的宏用于在调试版时映射你的内存分配操作, 检测内存泄露, 等.
去掉这个宏即可。
深入研究稍后进行。