CxImage就这么难用?
从官方网站上下的代码和DEMO,结果很多DEMO执行出错,全都是error LNK2001: unresolved external symbol错误。
自己不论是按官方网站上的提示一步步操作还是按其他文章上的提示做,结果都是一样:
MDlg.obj : error LNK2001: unresolved external symbol "public: bool __thiscall CxImage::Save(char const *,unsigned long)" (?Save@CxImage@@QAE_NPBDK@Z)
MDlg.obj : error LNK2001: unresolved external symbol "public: bool __thiscall CxImage::Load(char const *,unsigned long)" (?Load@CxImage@@QAE_NPBDK@Z)
几乎都试遍了,最终必定有这两个错,在“设置”->link里添加LIB库一样,头文件前面#pragma comment也是一样。(LIB文件全是从官方下载的代码输出目录中拷贝过来的)