2 u012950905 u012950905 于 2013.11.28 16:12 提问

MFC课设时做了一个bmp格式转jpg格式出错,求大神解答
mfc

BmpVsJpgDlg.obj : error LNK2001: unresolved external symbol "public: int thiscall CDib::Write(class CFile *)" (?Write@CDib@@QAEHPAVCFile@@@Z)
BmpVsJpgDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CDib::ConvertFormat(unsigned short)" (?ConvertFormat@CDib@@QAEHG@Z)
BmpVsJpgDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CDib::Attach(void *)" (?Attach@CDib@@QAEHPAX@Z)
BmpVsJpgDlg.obj : error LNK2001: unresolved external symbol "public: void * __thiscall CDib::GetHandle(void)" (?GetHandle@CDib@@QAEPAXXZ)
BmpVsJpgDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJpeg::Load(char const *)" (?Load@CJpeg@@QAEHPBD@Z)
BmpVsJpgDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CJpeg::Save(char const *,class CDib *,int,int)" (?Save@CJpeg@@QAEHPBDPAVCDib@@HH@Z)
BmpVsJpgDlg.obj : error LNK2001: unresolved external symbol "public: int __thiscall CDib::Read(class CFile *)" (?Read@CDib@@QAEHPAVCFile@@@Z)
Dib.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CDib::Serialize(class CArchive &)" (?Serialize@CDib@@UAEXAAVCArchive@@@Z)
Dib.obj : error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CDib::GetRuntimeClass(void)const " (?GetRuntimeClass@CDib@@UBEPAUCRuntimeClass@@XZ)
dibapi.obj : error LNK2001: unresolved external symbol __imp
timeGetTime@0

1个回答

lx624909677
lx624909677   Ds   Rxr 2016.03.30 19:03

直接用CImage类,保存的时候改下后缀就行了

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!