Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Linking a Library built in VC6 with an application built in VC8

rageshctechrageshctech Member Posts: 20
I've created a win32 static library with MFC support.
Its interface (.h) have MFC dependency
For example:
The function,
[code]void SampleFunction( CString csStr_i );[/code]
is a member function of a class in the library whose declaration is present in the interface (.h file of library ).
This library is compiled and linked using VC 6.0.

I have a client application 'X' built in VC 6.0 which is using the above library and it is working fine.

Now I've created another client application 'Y' which is built in VC 8.0.
I need to link the above library with this application.
but it show a lot of link errors like:
[code]1>uafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual void __thiscall CWinThread::Delete(void)" (?Delete@CWinThread@@UAEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::IsIdleMessage(struct tagMSG *)" (?IsIdleMessage@CWinThread@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::PreTranslateMessage(struct tagMSG *)" (?PreTranslateMessage@CWinThread@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::ProcessMessageFilter(int,struct tagMSG *)" (?ProcessMessageFilter@CWinThread@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual class CWnd * __thiscall CWinThread::GetMainWnd(void)" (?GetMainWnd@CWinThread@@UAEPAVCWnd@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(thrdcore.obj) : error LNK2005: "public: virtual int __thiscall CWinThread::PumpMessage(void)" (?PumpMessage@CWinThread@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl2.obj) : error LNK2005: "class CWinApp * __stdcall AfxGetApp(void)" (?AfxGetApp@@YGPAVCWinApp@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl2.obj) : error LNK2005: "public: struct HDC__ * __thiscall CDC::GetSafeHdc(void)const " (?GetSafeHdc@CDC@@QBEPAUHDC__@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall CDC::DrawIcon(int,int,struct HICON__ *)" (?DrawIcon@CDC@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl2.obj) : error LNK2005: "public: int __thiscall CMenu::AppendMenuW(unsigned int,unsigned int,wchar_t const *)" (?AppendMenuW@CMenu@@QAEHIIPB_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxmem.obj) : error LNK2005: "public: static void __stdcall CObject::operator delete(void *)" (??3CObject@@SGXPAX@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) already defined in msvcrtd.lib(MSVCR80D.dll)
1>uafxcwd.lib(afxinl1.obj) : error LNK2005: "public: virtual void __thiscall CObject::Serialize(class CArchive &)" (?Serialize@CObject@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::PreSubclassWindow(void)" (?PreSubclassWindow@CWnd@@UAEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::CreateEx(unsigned long,wchar_t const *,wchar_t const *,unsigned long,struct tagRECT const &,class CWnd *,unsigned int,void *)" (?CreateEx@CWnd@@UAEHKPB_W0KABUtagRECT@@PAV1@IPAX@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::CreateEx(unsigned long,wchar_t const *,wchar_t const *,unsigned long,int,int,int,int,struct HWND__ *,struct HMENU__ *,void *)" (?CreateEx@CWnd@@UAEHKPB_W0KHHHHPAUHWND__@@PAUHMENU__@@PAX@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::PreCreateWindow(struct tagCREATESTRUCTW &)" (?PreCreateWindow@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::Create(wchar_t const *,wchar_t const *,unsigned long,struct tagRECT const &,class CWnd *,unsigned int,struct CCreateContext *)" (?Create@CWnd@@UAEHPB_W0KABUtagRECT@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual void __thiscall CWnd::PostNcDestroy(void)" (?PostNcDestroy@CWnd@@MAEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::OnFinalRelease(void)" (?OnFinalRelease@CWnd@@UAEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::DestroyWindow(void)" (?DestroyWindow@CWnd@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual long __thiscall CWnd::DefWindowProcW(unsigned int,unsigned int,long)" (?DefWindowProcW@CWnd@@MAEJIIJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual long (__stdcall** __thiscall CWnd::GetSuperWndProcAddr(void))(struct HWND__ *,unsigned int,unsigned int,long)" (?GetSuperWndProcAddr@CWnd@@MAEPAP6GJPAUHWND__@@IIJ@ZXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::OnToolHitTest(class CPoint,struct tagTOOLINFOW *)const " (?OnToolHitTest@CWnd@@UBEHVCPoint@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::WinHelpW(unsigned long,unsigned int)" (?WinHelpW@CWnd@@UAEXKI@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::HtmlHelpW(unsigned long,unsigned int)" (?HtmlHelpW@CWnd@@UAEXKI@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::WinHelpInternal(unsigned long,unsigned int)" (?WinHelpInternal@CWnd@@UAEXKI@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual long __thiscall CWnd::WindowProc(unsigned int,unsigned int,long)" (?WindowProc@CWnd@@MAEJIIJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual int __thiscall CWnd::OnWndMsg(unsigned int,unsigned int,long,long *)" (?OnWndMsg@CWnd@@MAEHIIJPAJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual int __thiscall CWnd::OnCommand(unsigned int,long)" (?OnCommand@CWnd@@MAEHIJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual int __thiscall CWnd::OnNotify(unsigned int,long,long *)" (?OnNotify@CWnd@@MAEHIJPAJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual class CScrollBar * __thiscall CWnd::GetScrollBarCtrl(int)const " (?GetScrollBarCtrl@CWnd@@UBEPAVCScrollBar@@H@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::CalcWindowRect(struct tagRECT *,unsigned int)" (?CalcWindowRect@CWnd@@UAEXPAUtagRECT@@I@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual int __thiscall CWnd::OnChildNotify(unsigned int,unsigned int,long,long *)" (?OnChildNotify@CWnd@@MAEHIIJPAJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual struct AFX_INTERFACEMAP const * __thiscall CWnd::GetInterfaceMap(void)const " (?GetInterfaceMap@CWnd@@MBEPBUAFX_INTERFACEMAP@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::EnsureStdObj(void)" (?EnsureStdObj@CWnd@@UAEJXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accParent(struct IDispatch * *)" (?get_accParent@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accChildCount(long *)" (?get_accChildCount@CWnd@@UAEJPAJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accChild(struct tagVARIANT,struct IDispatch * *)" (?get_accChild@CWnd@@UAEJUtagVARIANT@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accName(struct tagVARIANT,wchar_t * *)" (?get_accName@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accValue(struct tagVARIANT,wchar_t * *)" (?get_accValue@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accDescription(struct tagVARIANT,wchar_t * *)" (?get_accDescription@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accRole(struct tagVARIANT,struct tagVARIANT *)" (?get_accRole@CWnd@@UAEJUtagVARIANT@@PAU2@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accState(struct tagVARIANT,struct tagVARIANT *)" (?get_accState@CWnd@@UAEJUtagVARIANT@@PAU2@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accHelp(struct tagVARIANT,wchar_t * *)" (?get_accHelp@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accHelpTopic(wchar_t * *,struct tagVARIANT,long *)" (?get_accHelpTopic@CWnd@@UAEJPAPA_WUtagVARIANT@@PAJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accKeyboardShortcut(struct tagVARIANT,wchar_t * *)" (?get_accKeyboardShortcut@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accFocus(struct tagVARIANT *)" (?get_accFocus@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accSelection(struct tagVARIANT *)" (?get_accSelection@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::get_accDefaultAction(struct tagVARIANT,wchar_t * *)" (?get_accDefaultAction@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::accSelect(long,struct tagVARIANT)" (?accSelect@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::accLocation(long *,long *,long *,long *,struct tagVARIANT)" (?accLocation@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::accNavigate(long,struct tagVARIANT,struct tagVARIANT *)" (?accNavigate@CWnd@@UAEJJUtagVARIANT@@PAU2@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::accHitTest(long,long,struct tagVARIANT *)" (?accHitTest@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::accDoDefaultAction(struct tagVARIANT)" (?accDoDefaultAction@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::put_accName(struct tagVARIANT,wchar_t *)" (?put_accName@CWnd@@UAEJUtagVARIANT@@PA_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::put_accValue(struct tagVARIANT,wchar_t *)" (?put_accValue@CWnd@@UAEJUtagVARIANT@@PA_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::SetProxy(struct IAccessibleProxy *)" (?SetProxy@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual long __thiscall CWnd::CreateAccessibleProxy(unsigned int,long,long *)" (?CreateAccessibleProxy@CWnd@@UAEJIJPAJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::ContinueModal(void)" (?ContinueModal@CWnd@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::EndModalLoop(int)" (?EndModalLoop@CWnd@@UAEXH@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::IsFrameWnd(void)const " (?IsFrameWnd@CWnd@@UBEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual int __thiscall CWnd::CreateControlContainer(class COleControlContainer * *)" (?CreateControlContainer@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual int __thiscall CWnd::CreateControlSite(class COleControlContainer *,class COleControlSite * *,unsigned int,struct _GUID const &)" (?CreateControlSite@CWnd@@MAEHPAVCOleControlContainer@@PAPAVCOleControlSite@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wingdi.obj) : error LNK2005: "public: __thiscall CPaintDC::CPaintDC(class CWnd *)" (??0CPaintDC@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(wingdi.obj) : error LNK2005: "public: virtual __thiscall CPaintDC::~CPaintDC(void)" (??1CPaintDC@@UAE@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "public: virtual int __thiscall CCmdTarget::OnCmdMsg(unsigned int,int,void *,struct AFX_CMDHANDLERINFO *)" (?OnCmdMsg@CCmdTarget@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "public: virtual int __thiscall CCmdTarget::IsInvokeAllowed(long)" (?IsInvokeAllowed@CCmdTarget@@UAEHJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "public: virtual int __thiscall CCmdTarget::GetDispatchIID(struct _GUID *)" (?GetDispatchIID@CCmdTarget@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "public: virtual unsigned int __thiscall CCmdTarget::GetTypeInfoCount(void)" (?GetTypeInfoCount@CCmdTarget@@UAEIXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "public: virtual class CTypeLibCache * __thiscall CCmdTarget::GetTypeLibCache(void)" (?GetTypeLibCache@CCmdTarget@@UAEPAVCTypeLibCache@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "public: virtual long __thiscall CCmdTarget::GetTypeLib(unsigned long,struct ITypeLib * *)" (?GetTypeLib@CCmdTarget@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual struct AFX_DISPMAP const * __thiscall CCmdTarget::GetDispatchMap(void)const " (?GetDispatchMap@CCmdTarget@@MBEPBUAFX_DISPMAP@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual struct AFX_EVENTSINKMAP const * __thiscall CCmdTarget::GetEventSinkMap(void)const " (?GetEventSinkMap@CCmdTarget@@MBEPBUAFX_EVENTSINKMAP@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual struct AFX_INTERFACEMAP const * __thiscall CCmdTarget::GetInterfaceMap(void)const " (?GetInterfaceMap@CCmdTarget@@MBEPBUAFX_INTERFACEMAP@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "public: virtual void __thiscall CCmdTarget::OnFinalRelease(void)" (?OnFinalRelease@CCmdTarget@@UAEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "public: virtual int __thiscall CCmdTarget::OnCreateAggregates(void)" (?OnCreateAggregates@CCmdTarget@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "public: virtual struct IUnknown * __thiscall CCmdTarget::GetInterfaceHook(void const *)" (?GetInterfaceHook@CCmdTarget@@UAEPAUIUnknown@@PBX@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual struct AFX_CONNECTIONMAP const * __thiscall CCmdTarget::GetConnectionMap(void)const " (?GetConnectionMap@CCmdTarget@@MBEPBUAFX_CONNECTIONMAP@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual struct IConnectionPoint * __thiscall CCmdTarget::GetConnectionHook(struct _GUID const &)" (?GetConnectionHook@CCmdTarget@@MAEPAUIConnectionPoint@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual int __thiscall CCmdTarget::GetExtraConnectionPoints(class CPtrArray *)" (?GetExtraConnectionPoints@CCmdTarget@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual struct AFX_OLECMDMAP const * __thiscall CCmdTarget::GetCommandMap(void)const " (?GetCommandMap@CCmdTarget@@MBEPBUAFX_OLECMDMAP@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl3.obj) : error LNK2005: "public: long __thiscall CWnd::SendMessageW(unsigned int,unsigned int,long)" (?SendMessageW@CWnd@@QAEJIIJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl3.obj) : error LNK2005: "public: class CMenu * __thiscall CWnd::GetSystemMenu(int)const " (?GetSystemMenu@CWnd@@QBEPAVCMenu@@H@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl3.obj) : error LNK2005: "public: int __thiscall CWnd::IsIconic(void)const " (?IsIconic@CWnd@@QBEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl3.obj) : error LNK2005: "public: void __thiscall CWnd::GetClientRect(struct tagRECT *)const " (?GetClientRect@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl3.obj) : error LNK2005: "public: struct HICON__ * __thiscall CWnd::SetIcon(struct HICON__ *,int)" (?SetIcon@CWnd@@QAEPAUHICON__@@PAU2@H@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl3.obj) : error LNK2005: "protected: void __thiscall CWnd::OnSysCommand(unsigned int,long)" (?OnSysCommand@CWnd@@IAEXIJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl3.obj) : error LNK2005: "protected: virtual void __thiscall CWnd::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CWnd@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl3.obj) : error LNK2005: "public: virtual void __thiscall CWnd::BeginModalState(void)" (?BeginModalState@CWnd@@UAEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl3.obj) : error LNK2005: "public: virtual void __thiscall CWnd::EndModalState(void)" (?EndModalState@CWnd@@UAEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl3.obj) : error LNK2005: "public: virtual int __thiscall CDialog::Create(unsigned int,class CWnd *)" (?Create@CDialog@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(afxinl3.obj) : error LNK2005: "public: struct HICON__ * __thiscall CWinApp::LoadIconW(unsigned int)const " (?LoadIconW@CWinApp@@QBEPAUHICON__@@I@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(winocc.obj) : error LNK2005: "public: virtual int __thiscall CWnd::OnAmbientProperty(class COleControlSite *,long,struct tagVARIANT *)" (?OnAmbientProperty@CWnd@@UAEHPAVCOleControlSite@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appui1.obj) : error LNK2005: "public: virtual int __thiscall CWinApp::DoMessageBox(wchar_t const *,unsigned int,unsigned int)" (?DoMessageBox@CWinApp@@UAEHPB_WII@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appui1.obj) : error LNK2005: "int __stdcall AfxMessageBox(wchar_t const *,unsigned int,unsigned int)" (?AfxMessageBox@@YGHPB_WII@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "protected: static struct AFX_MSGMAP const * __stdcall CWinApp::GetThisMessageMap(void)" (?GetThisMessageMap@CWinApp@@KGPBUAFX_MSGMAP@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: __thiscall CWinApp::CWinApp(wchar_t const *)" (??0CWinApp@@QAE@PB_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual int __thiscall CWinApp::LoadSysPolicies(void)" (?LoadSysPolicies@CWinApp@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual int __thiscall CWinApp::InitApplication(void)" (?InitApplication@CWinApp@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual int __thiscall CWinApp::InitInstance(void)" (?InitInstance@CWinApp@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual struct HINSTANCE__ * __thiscall CWinApp::LoadAppLangResourceDLL(void)" (?LoadAppLangResourceDLL@CWinApp@@UAEPAUHINSTANCE__@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual __thiscall CWinApp::~CWinApp(void)" (??1CWinApp@@UAE@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual int __thiscall CWinApp::ExitInstance(void)" (?ExitInstance@CWinApp@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual int __thiscall CWinApp::Run(void)" (?Run@CWinApp@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual void __thiscall CWinApp::WinHelpW(unsigned long,unsigned int)" (?WinHelpW@CWinApp@@UAEXKI@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual void __thiscall CWinApp::HtmlHelpW(unsigned long,unsigned int)" (?HtmlHelpW@CWinApp@@UAEXKI@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual void __thiscall CWinApp::WinHelpInternal(unsigned long,unsigned int)" (?WinHelpInternal@CWinApp@@UAEXKI@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual long __thiscall CWinApp::ProcessWndProcException(class CException *,struct tagMSG const *)" (?ProcessWndProcException@CWinApp@@UAEJPAVCException@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual int __thiscall CWinApp::OnIdle(long)" (?OnIdle@CWinApp@@UAEHJ@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual void __thiscall CWinApp::AssertValid(void)const " (?AssertValid@CWinApp@@UBEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual void __thiscall CWinApp::Dump(class CDumpContext &)const " (?Dump@CWinApp@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual struct CRuntimeClass * __thiscall CWinApp::GetRuntimeClass(void)const " (?GetRuntimeClass@CWinApp@@UBEPAUCRuntimeClass@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "protected: static struct AFX_MSGMAP const * __stdcall CDialog::GetThisMessageMap(void)" (?GetThisMessageMap@CDialog@@KGPBUAFX_MSGMAP@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual int __thiscall CDialog::PreTranslateMessage(struct tagMSG *)" (?PreTranslateMessage@CDialog@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual int __thiscall CDialog::OnCmdMsg(unsigned int,int,void *,struct AFX_CMDHANDLERINFO *)" (?OnCmdMsg@CDialog@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual __thiscall CDialog::~CDialog(void)" (??1CDialog@@UAE@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "protected: void __thiscall CDialog::OnPaint(void)" (?OnPaint@CDialog@@IAEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual int __thiscall CDialog::Create(wchar_t const *,class CWnd *)" (?Create@CDialog@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual int __thiscall CDialog::CreateIndirect(void *,class CWnd *)" (?CreateIndirect@CDialog@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual int __thiscall CDialog::CreateIndirect(struct DLGTEMPLATE const *,class CWnd *,void *)" (?CreateIndirect@CDialog@@UAEHPBUDLGTEMPLATE@@PAVCWnd@@PAX@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "protected: virtual int __thiscall CDialog::SetOccDialogInfo(struct _AFX_OCC_DIALOG_INFO *)" (?SetOccDialogInfo@CDialog@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "protected: virtual struct _AFX_OCC_DIALOG_INFO * __thiscall CDialog::GetOccDialogInfo(void)" (?GetOccDialogInfo@CDialog@@MAEPAU_AFX_OCC_DIALOG_INFO@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: __thiscall CDialog::CDialog(unsigned int,class CWnd *)" (??0CDialog@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual int __thiscall CDialog::DoModal(void)" (?DoModal@CDialog@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "protected: virtual void __thiscall CDialog::PreInitDialog(void)" (?PreInitDialog@CDialog@@MAEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual void __thiscall CDialog::OnSetFont(class CFont *)" (?OnSetFont@CDialog@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual int __thiscall CDialog::OnInitDialog(void)" (?OnInitDialog@CDialog@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "protected: virtual void __thiscall CDialog::OnOK(void)" (?OnOK@CDialog@@MAEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "protected: virtual void __thiscall CDialog::OnCancel(void)" (?OnCancel@CDialog@@MAEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual int __thiscall CDialog::CheckAutoCenter(void)" (?CheckAutoCenter@CDialog@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual void __thiscall CDialog::AssertValid(void)const " (?AssertValid@CDialog@@UBEXXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual void __thiscall CDialog::Dump(class CDumpContext &)const " (?Dump@CDialog@@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual struct CRuntimeClass * __thiscall CDialog::GetRuntimeClass(void)const " (?GetRuntimeClass@CDialog@@UBEPAUCRuntimeClass@@XZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appui.obj) : error LNK2005: "public: virtual void __thiscall CWinApp::DoWaitCursor(int)" (?DoWaitCursor@CWinApp@@UAEXH@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appui.obj) : error LNK2005: "public: virtual int __thiscall CWinApp::SaveAllModified(void)" (?SaveAllModified@CWinApp@@UAEHXZ) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appui.obj) : error LNK2005: "public: virtual void __thiscall CWinApp::AddToRecentFileList(wchar_t const *)" (?AddToRecentFileList@CWinApp@@UAEXPB_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appui.obj) : error LNK2005: "public: virtual class CDocument * __thiscall CWinApp::OpenDocumentFile(wchar_t const *)" (?OpenDocumentFile@CWinApp@@UAEPAVCDocument@@PB_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appui.obj) : error LNK2005: "public: virtual int __thiscall CWinApp::OnDDECommand(wchar_t *)" (?OnDDECommand@CWinApp@@UAEHPA_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>uafxcwd.lib(appui3.obj) : error LNK2005: "protected: void __thiscall CWinApp::SetRegistryKey(wchar_t const *)" (?SetRegistryKey@CWinApp@@IAEXPB_W@Z) already defined in mfc80ud.lib(MFC80UD.DLL)
1>LINK : warning LNK4098: defaultlib 'uafxcwd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>VC8MFCCStringTestDlg.obj : error LNK2019: unresolved external symbol "public: void __thiscall CCStringLibEx::TakeChar(class ATL::CStringT > >)" (?TakeChar@CCStringLibEx@@Z) referenced in function "public: void __thiscall CVC8MFCCStringTestDlg::OnBnClickedOk(void)" (?OnBnClickedOk@CVC8MFCCStringTestDlg@@QAEXXZ)
1>CStringLibEx.lib(CStringLibEx.obj) : error LNK2019: unresolved external symbol "public: __thiscall CString::~CString(void)" (??1CString@@QAE@XZ) referenced in function "public: void __thiscall CCStringLibEx::TakeChar(class CString)" (?TakeChar@CCStringLibEx@@Z)
1>CStringLibEx.lib(CStringLibEx.obj) : error LNK2019: unresolved external symbol "public: __thiscall CString::operator unsigned short const *(void)const " (??BCString@@QBEPBGXZ) referenced in function "public: void __thiscall CCStringLibEx::TakeChar(class CString)" (?TakeChar@CCStringLibEx@@Z)
1>uafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___wargv
1>uafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc[/code]

If I replace that Cstring with TCHAR and remove MFC support,'Y' will work.
'X' also works if we update the call to the function with TCHAR.
But i'm searching for an alternate solution.

'X' must not be changed. Library must be built with VC 6.0.

Is there any way to link this VC6 library to VC8 client without removing MFC dependency?
Sign In or Register to comment.