Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

VS2012: Removed support for active contexts switching in MFC?

$
0
0

Hello,

Recently I've been updating an existing C++ addin (DLL basically) to use Visual Studio 2012. The addin uses manifest to bind to the latest version of the Common Controls. I know this thing was already discussed thousand times, and it worked perfectly since VS 2005. Also note that it still works if you select old VS2010/VS2008 toolset in VS2012.

The problem is that it does not work anymore with the latest versions of libraries in VS2012. It looks like that the support for active context switching was removed from MFC in VS2012. Before that, MFC took care of switching correct activation context in the  AFX_MANAGE_STATE(AfxGetStaticModuleState()). 

See more info here to understand what I am talking about: Support for Activation Contexts in the MFC Module State 

The described thing does seem not work anymore in VS2012. I've checked the source code of atl/mfc, and found out that this context-switching functionality was actually removed (?!) from the latest versions of atl/mfc libraries (files afxstate.cpp, appcore.cpp, etc). 

So, basically my question is, why this functionality was removed, and how should I bind to common-controls manifests now?

Thank you in advance!


-- Nikolay Belyh, http://unmanagedvisio.com


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>