none
uafxcw.lib(afxrendertarget.obj) : error LNK2001: 无法解析的外部符号 IID_IWICImagingFactory RRS feed

全部回复

  • 你好,

    感谢在MSDN论坛发帖提问。

    >>uafxcw.lib(afxrendertarget.obj) : error LNK2001: 无法解析的外部符号 IID_IWICImagingFactory.

    你的工程里面有包含类似这样的代码吗?

    	CoInitialize(NULL);
    // The factory pointer
    	IWICImagingFactory *pFactory = NULL;
    // Create the COM imaging factory
    	HRESULT hr = CoCreateInstance(CLSID_WICImagingFactory,NULL,CLSCTX_INPROC_SERVER,IID_IWICImagingFactory,(void**)&pFactory);

    如果有的话,可以试试看在工程中添加链接windowscodecs.lib。路径:Properties->Configuration Properties->Linker->General->Additional Include Directories。 这个库是由Windows SDK 提供的,所以要先确保安装了sdk

    Best wishes,

    Jack


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2019年1月7日 3:12
    版主