Print Page | Close Window

CXTPWinThemeWrapper::OpenTheme link error in DLL

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7106
Printed Date: 12 November 2025 at 7:37pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPWinThemeWrapper::OpenTheme link error in DLL
Posted By: mgampi
Subject: CXTPWinThemeWrapper::OpenTheme link error in DLL
Date Posted: 10 May 2007 at 6:42pm
Hi;
I'm using the toolkit 11.1 in a standard dll using mfc classes (no MFC extension DLL).
When trying to use the CXTPWinThemeWrapper class inside the DLL I get linker errors (unresolved externals) for all functions of the class that implement calls into UxTheme.dll.
On the other hand, functions like ThemeDataOpen() or EnableTheming() are correctly resolved.
 
Using the same class in MFC EXE compile and link without any errors.
 
Any ideas?
 


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Replies:
Posted By: Oleg
Date Posted: 11 May 2007 at 1:42am
Hello,
 
CXTPWinThemeWrapper  loads these functions in runtime. It have to be something in your application settings.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mgampi
Date Posted: 11 May 2007 at 3:16am
Hi Oleg;
 
I know this. Perhaps I described the problem in a wrong way. Not the uxtheme.dll function could not be resolved, but the functions of the CXTPWinThemeWrapper class that make calls into the UXTheme.dll. So CXTPWinThemeWrapper::OpenThemeData() or CXTPWinThemeWrapper::CloseThemeData() are not resolved by the linker.
 
 


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: mgampi
Date Posted: 11 May 2007 at 4:16am
Hi;
 
I found it myself! The old 'treat w_char as builtin type' issue...
In any case - thanks for the hint about project settings.


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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