LNK2019 ImagingFactory 错误

来源:互联网 发布:怎么通过淘宝客买东西 编辑:程序博客网 时间:2024/05/29 16:47

ImageDlg.obj : error LNK2019: unresolved external symbol _CLSID_ImagingFactory referenced in function "public: int __thiscall CImageDlg::ShowPic(struct HDC__ *,unsigned short const *,class CRect)" (?ShowPic@CImageDlg@@QAEHPAUHDC__@@PBGVCRect@@@Z)
ImageDlg.obj : error LNK2019: unresolved external symbol _IID_IImagingFactory referenced in function "public: int __thiscall CImageDlg::ShowPic(struct HDC__ *,unsigned short const *,class CRect)" (?ShowPic@CImageDlg@@QAEHPAUHDC__@@PBGVCRect@@@Z)
emulatorRel/GPS.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Creating browse info file...

 

如此错误,源头是没有加入头文件

//#include <initguid.h>  ---》就是这个没有加入,奇怪的是,之前一个工程也没加入,也没问题,这里居然拿有问题,估计前一

                                               个工程是在setting-》link加了某个库文件
#include <Imaging.h> 
#pragma comment (lib,"Ole32.lib")


 

原创粉丝点击