I'm trying to save a ID2D1bitmap to a file according to this How to save ID2D1Bitmap to PNG file
Can this be done in windows 7? without any platform update?
I get an Unhandled exception. (Aceess violation reading) at :
if (SUCCEEDED(hr))
{
hr = m_pWICFactory->CreateBitmap(
sc_bitmapWidth,
sc_bitmapHeight,
GUID_WICPixelFormat32bppPBGRA,
WICBitmapCacheOnLoad,
&pWICBitmap
);
}
I've declared m_pWICFactory & m_pDirect2dFactory as:
ID2D1Factory* m_pDirect2dFactory;
IWICImagingFactory *m_pWICFactory;
Can some one explain me the problem?