![]() |
CXTPWinThemeWrapper problem |
Post Reply ![]() |
Author | |
Jimor Marlow ![]() Groupie ![]() Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() Posted: 30 September 2007 at 5:02am |
I'm little bit confused.
When I've tried to use theme wrapper in dll I've got link error on OpenThemeData(). Looks like no export declaration only for that function. Used code: CXTPWinThemeWrapper themeScroll; themeScroll.OpenThemeData(0, L"SCROLLBAR"); themeScroll.DrawThemeBackground(dc.GetSafeHdc(), SBP_SIZEBOX, SZB_RIGHTALIGN, &rect, 0); Output: error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CXTPWinThemeWrapper::OpenThemeData(struct HWND__ *,unsigned short const *)" (__imp_?OpenThemeData@CXTPWinThemeWrapper@@QAEXPAUHWND__@@PBG@Z) referenced in function "public: void __thiscall CPlugInsRibbonHelper::SetUsed(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > const &,int)" (?SetUsed@CPlugInsRibbonHelper@@QAEXABV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@H@Z) .\..\Debug/***.dll : fatal error LNK1120: 1 unresolved externals In code below no errors found but sure not works. Other methods of CXTPWinThemeWrapper imported ok. CXTPWinThemeWrapper themeScroll; //themeScroll.OpenThemeData(0, L"SCROLLBAR"); themeScroll.DrawThemeBackground(dc.GetSafeHdc(), SBP_SIZEBOX, SZB_RIGHTALIGN, &rect, 0); When I use that code in main exe all ok, no errors. Problem only in all my dlls. Any help would be appreciated :) |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
In project settings change Properties->c/c++>Language->Treate wchar_t as Builtin Type =yes |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Jimor Marlow ![]() Groupie ![]() Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
Oleg, thanx a lot!
I've just found your answer in tread http://forum.codejock.com/forum_posts.asp?TID=6299 and intended to try :) Anyway, you a great. PS. It should be boring to answer the same dumb questions all the time, isn't it? :))) PPS. Why I'm asking, I'm working on Sunday too :) |
|
![]() |
|
omtara ![]() Groupie ![]() ![]() Joined: 22 December 2007 Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() |
I am having the same problem... But if I set the option to "Yes" I get another problem: comsuppw.lib(comutil.obj) : error LNK2005: "class _variant_t vtMissing" (?vtMissing@@3V_variant_t@@A) already defined in comsupp.lib(comutil.obj) Thanks,Omtara
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
It means you have some another library that don't have this option switched to Yes.
Another solution is set it to "No", open Toolkit set it to "No" too and rebuild toolkit.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |