Static MFC executables produced by Visual Studio 2012 RC are huge - by JoeWoodbury

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 745790 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 6/1/2012 10:18:30 AM
Access Restriction Public


The static MFC executables for even the simplest application are huge.
Sign in to post a comment.
Posted by JoeWoodbury on 1/18/2013 at 10:24 AM
The define causes errors in the compile. Once resolved, it simply reduced the executable size from being massive (3.4 MB) to simply being huge (1.7 MB.) This is still hopelessly absurd.
Posted by Mike on 6/17/2012 at 7:02 AM
You have to use _AFX_NO_MFC_CONTROLS_IN_DIALOGS in your stdafx.h file. In RC this works with all project types now.
Posted by Chris Yaz on 6/5/2012 at 10:10 AM
Pat, shouldn't the RC pretty much reflect what the RTM will be?

The MFC size problem is still there.
Posted by JoeWoodbury on 6/4/2012 at 7:35 PM
Hence my report. This IS the next major release!
Posted by Microsoft on 6/4/2012 at 3:05 PM
Hello Joe,

Thanks for the report. This issue has been fixed in MFC for the next major release of Visual Studio. Please see the VC blog article I wrote about this topic at .

Pat Brenner
Visual C++ Libraries Development
Posted by Microsoft on 6/4/2012 at 12:59 AM
Thank you for submitting feedback on Visual Studio 11 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 6/1/2012 at 10:43 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(