Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Different styles in different builds
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Different styles in different builds

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


Joined: 11 March 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote ferr Quote  Post ReplyReply Direct Link To This Post Topic: Different styles in different builds
    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
--
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: 12 March 2009 at 2:07am
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
Back to Top
ferr View Drop Down
Newbie
Newbie


Joined: 11 March 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote ferr Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2009 at 5:35am

Hi, thanks for your suggestion, but I had no luck with this.

Actually suggested code is already in stdafx.h.
 
Any other clue?
Back to Top
mitcheljh View Drop Down
Groupie
Groupie


Joined: 20 July 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote mitcheljh Quote  Post ReplyReply Direct Link To This Post Posted: 04 March 2010 at 2:07pm
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!
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.172 seconds.