Print Page | Close Window

Link Error: CXTPCommandBars::SetMenu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3007
Printed Date: 06 October 2024 at 3:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Link Error: CXTPCommandBars::SetMenu
Posted By: Rick1
Subject: Link Error: CXTPCommandBars::SetMenu
Date 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)" ( mailto:__imp_?SetMenu@CXTPCommandBars@@QAEPAVCXTPMenuBar@@V?$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@@@@ATL@@I@Z - __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 *)" ( mailto:?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z - ?OnCreate@CMainFrame@@IAEHPAUtagCREATESTRUCTW@@@Z )

 

Rick




Replies:
Posted By: Oleg
Date 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


Posted By: Rick1
Date 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?




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net