Different styles in different builds |
Post Reply |
Author | |
ferr
Newbie Joined: 11 March 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 11 March 2009 at 3:12am |
Hello, I encountered problem when doing different builds. For my project I was using codejock .lib for my main project.
The project setting and code are basically the same except the following parameters:
For my debug build,
Use Of MFC: Use MFC in a Shared DLL
Runtime Library: Multi-threaded Debug DLL (/MDd)
Everything seems alright and the resulting program shows interface with new styles as shown on new1.jpg and new2.jpg
For my release build,
Use of MFC: Use MFC in a Static Library
Runtime Library: Multi-threaded (/MT)
Same interface but with old styles as shown on old1.jpg and old2.jpg
Any reason for that?
--
Product: Xtreme Controls 2006 Q3
Platform: Windows XP (32bit) - SP 2 IDE: Microsoft Visual C++ 2005 --
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Add in stdafx.h
#if (_MSC_VER > 1310) // VS2005
#if defined _M_IX86 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") #elif defined _M_IA64 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") #elif defined _M_X64 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") #else #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") #endif #endif |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ferr
Newbie Joined: 11 March 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Hi, thanks for your suggestion, but I had no luck with this. Actually suggested code is already in stdafx.h.
Any other clue?
|
|
mitcheljh
Groupie Joined: 20 July 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
|
We just updated to Visual Studio 2008. After updating, we noticed alpha blending issues. I suspected it had something to do with the manifest, and discovered this post.
Added the suggested changes to our stdafx.h, and it cleared up our problems. Thanks! |
|
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 |