Hello,

I have problem with this code:

Code:
	CImage tmpImg;
	HRESULT hResult = tmpImg.Load(L"C:\\img-1.gif");	
	tmpImg.Create(tmpImg.GetWidth(), tmpImg.GetHeight(), tmpImg.GetBPP());
and the problem is that assert m_hBitmap == 0 fails.

I just need to create real HBITMAP from CImage without casting (CImage:perator HBITMAP()).

Thank you for help!