SaveToWICFile return 80004002
PTA00 opened this issue · 5 comments
PTA00 commented
PTA00 commented
I noticed the return statement in the source code.No WIC support?
https://github.com/microsoft/DirectXTex/blob/20e246af2bd5f18a7cc553323bac0f2320e3bd2e/DirectXTex/DirectXTexWIC.cpp#L1550
PTA00 commented
bool iswic2 = false;
auto pWIC = GetWICFactory(iswic2);
if (!pWIC)
return E_NOINTERFACE;
PTA00 commented
//
// MessageId: E_NOINTERFACE
//
// MessageText:
//
// No such interface supported
//
#define E_NOINTERFACE HRESULT_TYPEDEF(0x80004002L)
walbourn commented
Have you initialized COM in your application?
https://github.com/microsoft/DirectXTex/wiki/DirectXTex#initialization
PTA00 commented
Sorry, I didn't notice that.