Experts, the code is as follows:
CoInitialize (NULL);
The CoCreateInstance (
CLSID_WICImagingFactory,
Nullptr,
CLSCTX_INPROC_SERVER,
IID_IWICImagingFactory,
(LPVOID *) & amp; M_pWicImagingFactory
);
CoCreateInstance create failure, m_pWicImagingFactory address returns have been empty, why? How to solve?
CodePudding user response:
CoCreateInstance return values are: REGDB_E_CLASSNOTREG Class not registered but what should it do,,,
CodePudding user response:
The corresponding com components registered in the system, using regsvr32 register
CodePudding user response:
Look from the error information is registered
CodePudding user response: