VS2017 Windows Side by side feature is not working for Comctl32.dll

Ramseem A 46 Reputation points
2021-05-26T04:11:02.75+00:00

We have Used Windows Common control (ComCtl32.dll) version 5 in most of the modules(DLL and EXE).
Now Some modules(DLL) requires the feature of Windows Common control version 6. We performed a feasibility using Windows Side by side feature to load both version 5 and version 6 in different DLLs of same application. All binaries are build using VS2010 and works fine in Windows 7 and Windows 10 OS. But Now we use VS2017 for build our binaries and seems that the feature is not working.

Since it is big system maintained by different team we can't able to switch the entire application to Common control version version 6. We also try to use CCM_SETVERSION message but it is also failed.

Please help me to solve the issue

Windows development | Windows API - Win32
Developer technologies | C++
{count} votes

Accepted answer
  1. RLWA32 49,636 Reputation points
    2021-05-27T12:32:18.3+00:00

    At this point I believe that MFC versions after the one included in VS2010 fail to manage activation contexts contrary to the published documentation (e.g., AFX_MANAGE_STATE, support-for-activation-contexts-in-the-mfc-module-state). The docs also refer to functions and headers that do not exist in the VS2017 and VS2019 supplied versions of MFC such as AfxSetAmbientActCtx and afxcomctl32.h

    Also, take a look at vs2015-mfc140dll-deactivates-my-activation-context-due-to-isolation-aware-how-to-fix. I forgot about this thread -- the activation context problem has existed for quite a while.

    I suggest you open an issue with Developer Community and provide the minimum sample that you have already created. If you do open an issue please post back with the link so we can upvote it.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.