Okay, I saw that the pointer to WIC Factory that I pass to the function is null.
Doesn't should that initialize the pointer?
IWICImagingFactory *pWICFactory = NULL;
if(SUCCEEDED(hr))
{
hr = CoCreateInstance(CLSID_WICImagingFactory, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pWICFactory));
}
What else I have to do?
Thanks!

Find content
Not Telling