关于imageload.dll的使用,请使用过的进来看看

jemmylau 2002-12-30 01:14:05
我想使用imageload.dll和imageobect.dll

我将imageobject.h包含到程序中后,

并将imageload.lib和imageobjectD.lib加入到link中,

我一旦声明一个CImageObject的对象,就会出现一百多个错误

请问这是怎么回事?并如何解决呢?

程序中我还没写任何一句代码

错误如下:(其中一部分)
--------------------Configuration: Change - Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
Change.cpp
ChangeDlg.cpp
Generating Code...
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual void __thiscall CWinThread::Delete(void)" (?Delete@CWinThread@@UAEXXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::IsIdleMessage(struct tagMSG *)" (?IsIdleMessage@CWinThread@@UAEHPAUtagMSG@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::PreTranslateMessage(struct tagMSG *)" (?PreTranslateMessage@CWinThread@@UAEHPAUtagMSG@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::ProcessMessageFilter(int,struct tagMSG *)" (?ProcessMessageFilter@CWinThread@@UAEHHPAUtagMSG@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual class CWnd * __thiscall CWinThread::GetMainWnd(void)" (?GetMainWnd@CWinThread@@UAEPAVCWnd@@XZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::PumpMessage(void)" (?PumpMessage@CWinThread@@UAEHXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxinl1.obj) : error LNK2005: "public: virtual void __thiscall CObject::Serialize(class CArchive &)" (?Serialize@CObject@@UAEXAAVCArchive@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxmem.obj) : error LNK2005: "public: static void __stdcall CObject::operator delete(void *)" (??3CObject@@SGXPAX@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "class CWinApp * __stdcall AfxGetApp(void)" (?AfxGetApp@@YGPAVCWinApp@@XZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: __thiscall CRect::CRect(void)" (??0CRect@@QAE@XZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall CRect::Width(void)const " (?Width@CRect@@QBEHXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall CRect::Height(void)const " (?Height@CRect@@QBEHXZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: __thiscall CPalette::CPalette(void)" (??0CPalette@@QAE@XZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: virtual __thiscall CPalette::~CPalette(void)" (??1CPalette@@UAE@XZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall CPalette::CreatePalette(struct tagLOGPALETTE *)" (?CreatePalette@CPalette@@QAEHPAUtagLOGPALETTE@@@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: struct HDC__ * __thiscall CDC::GetSafeHdc(void)const " (?GetSafeHdc@CDC@@QBEPAUHDC__@@XZ) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall CDC::GetDeviceCaps(int)const " (?GetDeviceCaps@CDC@@QBEHH@Z) already defined in mfc42d.lib(MFC42D.DLL)
nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: unsigned int __thiscall CDC::RealizePalette(void)" (?RealizePalette@CDC@@QAEIXZ) already defined in mfc42d.lib(MFC42D.DLL)
。。。。

...全文
510 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
jemmylau 2002-12-30
  • 打赏
  • 举报
回复
up一下
jemmylau 2002-12-30
  • 打赏
  • 举报
回复
我搜索了一下,我安装目录F:\Program\Microsoft Visual Studio\VC98\MFC\Lib下的却也有这个文件
jemmylau 2002-12-30
  • 打赏
  • 举报
回复
那我打开它的demo却可以运行的很正常。

这是为什么?
BaoYu 2002-12-30
  • 打赏
  • 举报
回复
系统安装时,没有带进MFC的调试Lib文件.
它在VC的安装光盘上有.具体目录,你可以去用全盘搜索.
文件名:mfc42d.lib

19,468

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧