遇到这样的问题令我极为郁闷,于是查找了一下,找到了解决方案:原来是微软的 DEBUG_NEW 和 GDI+ 不匹配造成的。

方法1:

注释掉:

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

这就好了。

方法2:

::new Bitmap(cx,cy,PixelFormat32bppRGB); //加上全局作用域说明符

方法3:

详细见:

Microsoft Foundation Classes DEBUG_NEW Does Not Work with GDI+

http://support.microsoft.com/kb/317799/

相关文章:

  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
猜你喜欢
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案