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);
is there any GDI initialization work or initialzation work missed or other question.
HELP me!!!!!!!!!!!!! null initialization GDIPLUS? NEW? DLL
[解决办法]
宽度和高度有多少大, 是不是没有内存够分配这张位图
[解决办法]
but new other object succeeded
其他的什么对象成了?
看返回值啊
还有 你应该讲中文
[解决办法]
(from stackoverflow):
栈溢出 ?