Visual Studio and .NET Framework Home
MFC of vs2010 generate a very large exe file
as Won't Fix
6/23/2009 11:25:57 PM
User(s) can reproduce this bug
A MFC exe project generate a exe file of 1616 kb when built with vc 2010. It generate a exe file of 482 kb when built with vc 2008.
Visual Studio 2010 Beta 1
Operating System Language
Steps to Reproduce
build the project as release.
TAP Code (if applicable)
You can indicate your satisfaction with how Microsoft handled this issue by completing this quick
3 question survey
to post a comment.
Please enter a comment.
on 12/31/2011 at 4:22 AM
No workaround in about 3 years! Please hurry!
on 4/29/2010 at 12:01 AM
We definitely need a workaround, too - and we need it fast.
on 4/15/2010 at 4:12 AM
We heed workaround!
on 6/29/2009 at 2:20 PM
Thanks for the report. We investigated and found that your project is building with dynamic MFC (MFC in DLLs) in the Debug configuration and with static MFC (MFC in static library) in the Release configuration. If you want your EXE to be smaller, you should switch to using MFC in a DLL.
For a future release we will investigate whether there is a way to reduce the size of the executable when linking with the static MFC libraries. The static libraries in VS2008 SP1 and later are much larger because of all the additional features that have been added.
Visual C++ Libraries Development
on 6/24/2009 at 11:31 PM
Thanks for your feedback.
We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.
These specialized experts will follow-up with your issue.
to post a workaround.
Please enter a workaround.
© 2014 Microsoft