new Gdiplus::Bitmap 返回NULL?
本帖最后由 longlongago7777 于 2013-03-21 12:57:31 编辑 new Gdiplus::Bitmap 返回NULL,详情如下(from stackoverflow):
I was using the GDI object in DLL,new gdiplus::bitmap in DLL returned null,but new other object succeeded. I used GdiplusStartup(&gdiplusToken, gdiplusStartupInput, NULL) to initialize.
The code is like:
GdiplusStartup(&gdiplusToken, gdiplusStartupInput, NULL);
...
Gdiplus::Bitmap *bmp = new Gdiplus::Bitmap(bmp_info.bmWidth, bmp_info.bmHeight, PixelFormat32bppARGB);