Search

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

Closed
as Fixed Help for as Fixed

4
0
Sign in
to vote
Type: Bug
ID: 745790
Opened: 6/1/2012 10:18:30 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
The static MFC executables for even the simplest application are huge.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012 RC

Steps to reproduce

1) Start VS 2012 RC
2) Create C++ MFC Dialog application
3) Deselect ALL features not available to Visual Studio 2008
4) Select "Use MFC in a static library"
5) Build release

Product Language

English

Operating System

Windows Server 2008 R2

Operating System Language

English

Actual results

Release is 3449KB (3.5MB!)

Expected results

For release to be under 250k. (For VS 2008, the result is 235k)
File Attachments
0 attachments
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 http://blogs.msdn.com/b/vcblog/archive/2012/02/06/10263387.aspx .

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(http://support.microsoft.com)
Sign in to post a workaround.