Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Link Error: CXTPCommandBars::SetMenu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Link Error: CXTPCommandBars::SetMenu

 Post Reply Post Reply
Author
Message
Rick1 View Drop Down
Newbie
Newbie


Joined: 05 October 2005
Location: Austria
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rick1 Quote  Post ReplyReply Direct Link To This Post Topic: Link Error: CXTPCommandBars::SetMenu
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 October 2005 at 7:04am

Hi,

Configuration Properties ->  C/C++ -> Language -> Treat wchar_t as Built-in Type = Yes

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Rick1 View Drop Down
Newbie
Newbie


Joined: 05 October 2005
Location: Austria
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rick1 Quote  Post ReplyReply Direct Link To This Post Posted: 05 October 2005 at 7:30am

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?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.