tags:

views:

165

answers:

1

I am using the following code to get a Bitmap point,

(width = 800, height = 600);

Bitmap* m_BitmapCanvasCore = new Bitmap(width, height, PixelFormat32bppARGB);

but the m_BitmapCanvasCore always is NULL... Is there any thing wrong about gdi+? Or any namespace polution I need to avoid? Why?

+1  A: 

Did you call GdiplusStartup before creating the Bitmap?

Mark Ransom
Thanks! I found the problem.