该Tools可以从官网处https://www.geometrictools.com/下载获得。
我在运行其目录下samples/Imagics/Convolution例子时到
ComObject<IWICImagingFactory> wicFactory;
HRESULT hr = ::CoCreateInstance(CLSID_WICImagingFactory, nullptr,
CLSCTX_INPROC_SERVER, IID_IWICImagingFactory,
reinterpret_cast<LPVOID*>(&wicFactory));
处时会报错,出现下图报错信息:
发现是下图处CLSID_WICImagingFactory的宏定义有问题
将 #define CLSID_WICImagingFactory CLSID_WICImagingFactory1改为#define CLSID_WICImagingFactory CLSID_WICImagingFactory或者CLSID_WICImagingFactory2即可,成功出现: