new Gdiplus :: Bitmap返回NULL [英] new Gdiplus::Bitmap return NULL

查看:263
本文介绍了new Gdiplus :: Bitmap返回NULL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新的Gdiplus :: Bitmap返回NULL,详细信息如下(来自stackoverflow):



我在使用GDI对象DLL,DLL中的新gdiplus :: bitmap返回null,但新的其他对象成功。我使用GdiplusStartup(& gdiplusToken,gdiplusStartupInput,NULL)进行初始化。

代码如下:

new Gdiplus::Bitmap return NULL,detail is as follows(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);







是否有任何GDI初始化工作或初始化工作错过或其他问题。

帮助我!!!!!!!!!!!!!




is there any GDI initialization work or initialzation work missed or other question.
HELP me!!!!!!!!!!!!!

推荐答案

解决了。我在开头的DLLMain条目中初始化。现在我使用GDI对象将初始化更改为函数。
Solved. I initialized in the DLLMain entry at the beginning. Now I changed the initialization to the function using the GDI Object.


这篇关于new Gdiplus :: Bitmap返回NULL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆