首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

new Gdiplus:Bit地图 返回NULL

2013-03-25 
new Gdiplus::Bitmap 返回NULL?本帖最后由 longlongago7777 于 2013-03-21 12:57:31 编辑new Gdiplus::Bit

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):
栈溢出 ?

热点排行