c2660专题

微软VC各版本BUG: error C2660: 'new' : function does not take 3 parameters[转]

今天在用GDI+写程序时,有 HatchBrush * brushDotDiamond = new HatchBrush (HatchStyle25Percent,color); 用VC6 SP6或VS2005编译错误为error C2660: 'new' : function does not take 3 parameters 这是VC的一个BUG, 微软至今还没

error C2660: “MessageBoxA” : 函数不接受 1 个参数

MessageBox函数的区别: 一个参数的MessageBox是MFC封装Win SDK的,只能在对话框里面进行调用; 例如:MessageBox( "pGRAY 空间申请失败"); 而四个参数的MessageBox函数,是Win SDK的,他有四个参数。  例如:MessageBox(NULL, "pGRAY 空间申请失败", "提示", MB_OK); 函数原型为:

error C2660: 'new' : function does not take 3 parameters

GDI+   NEW 一个image类时 出现如上错误信息   Image* pImage=new Image(path);        我的解决方法:直接使用Image类的成员函数FromFile      FromFile的声明如下:      public:static Image^ FromFile( String^ filename);      由此可