![]() |
Link Error: CXTPCommandBars::SetMenu |
Post Reply ![]() |
Author | |
Rick1 ![]() Newbie ![]() Joined: 05 October 2005 Location: Austria Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 05 October 2005 at 4:58am |
Hi fellows I just started working on XTP command bars in VC++7. Just put the necessary code as written in tutorial in a "from scratch new application", it was working fine. But when i tried to change one of my existing VC projects, i am getting the following link error in the OnCreate() Method of CMainFrame class for CXTPCommandBars::SetMenu method and also the CXTPToolBar::Add. I tried different ways of resolving this error via inputing lib files in project options to the linker, using the #pragma directive for loading the libs, both absolute and relative paths but i am unable to solve this problem. Can anybody help me in this regard. The error is as follows ChatPortal error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CXTPMenuBar * __thiscall CXTPCommandBars::SetMenu(class ATL::CStringT<unsigned short,class StrTraitMFC_DLL<unsigned short,class ATL::ChTraitsCRT<unsigned short> > >,unsigned int)" ( __imp_?SetMenu@CXTPCommandBars@@QAEPAVCXTPMenuBar@@V?$CStrin gT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@I@Z ) referenced in function "protected: int __thiscall CMainFrame::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z)
Rick |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, Configuration Properties -> C/C++ -> Language -> Treat wchar_t as Built-in Type = Yes |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Rick1 ![]() Newbie ![]() Joined: 05 October 2005 Location: Austria Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Is there any other solution for this problem?? right not i am using several other dlls and incase if i change to the above said configurations to "yest" then ...i get my all other dlls with unresolved symbols........can there be any other way out? |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |