Bugs fixed in MFC in Visual Studio 2008 SP1

Bugs fixed in MFC in Visual Studio 2008 SP1

  • Comments 34

Hello, everyone.  This is Pat Brenner.  I’m an SDE on the Visual C++ Libraries team.

We’ve just released Visual Studio 2008 SP1, and it includes about 55 fixes to the MFC library.  Many of these fixes are for the new features that were added in the Feature Pack, but others were bugs in the RTM version of Visual Studio 2008 that we have fixed.  Here is a partial list of the issues that we addressed:

·         Some accessibility issues in toolbar and ribbon components were fixed.

·         Running MFC applications on Windows 2000 (with or without GDIPlus.dll) is supported.

·         Alignment (packing) issues using the new MFC headers were fixed.

·         All security-related issues that we found were fixed.

·         Some issues with display of international characters in ribbon edit controls were fixed.

·         Issues with wizard-generated code in various non-standard configurations were fixed.

·         A number of small issues in the rendering of the ribbon and toolbar were fixed.

·         Warnings in the MFC samples when compiling /analyze were eliminated.

I hope this has been helpful.  As always, if you find bugs in MFC or any of the Visual C++ libraries, please log a bug on Microsoft Connect and to let us know about it.  At least 10 of the MFC bugs fixed for the SP1 release were reported by customers like you!

Pat Brenner
Visual C++ Libraries Team


Leave a Comment
  • Please add 3 and 5 and type the answer here:
  • Post
  • Really good work :)

    I'm now porting some of my applications where I use combination of new MFC and OpenGL. Only problem is custom buttons for toolbars. In MSDN is mentioned the AFX_WM_RESETTOOLBAR, but I really can't figure out how to consume this message. I need some example code.

    I can't find download link with samples for new MFC library.


  • I've installed SP1 to my VisualStudio 2008 RTM.

    Where can I find MFC Feature Pack samples?

    This file doesn't get updated by SP1 C:\Program Files (x86)\Microsoft Visual Studio 9.0\Samples\1033\AllVCLanguageSamples.zip

    The Help, Samples and MSDN still link to 2008 RTM samples dated 11/30/2007.

  • I allready filled a connect bug (ID 362127) for the samples.

    Is there an easy way to get the samples? i don´t want to reinstall the sp1 but i did not find a single download of the samples.

  • @Patrick

    Yes, you can download it from here: http://www.microsoft.com/downloads/details.aspx?FamilyID=9761bb57-f066-4b70-9318-3965c5e68aad&DisplayLang=en


  • the installer requires a lot of space

    the installer could be configurable, so we can select specific languages (C#, VC++, etc)

    Question: Does this change the symbol files?

  • found a nasty bug: CMFCMenuBar::EnableHelpCombobox only works with SDI, MDI will disable the control

    is there any way to enable the control manually? i tried to get the control and enable it via enablewindow(TRUE) but still no luck

  • Not sure where to report bugs in the new MFC, but here's one in case someone is listening:

    If docking is enabled on a frame before the status bar is created, it becomes possible to dock things underneath the status bar.  When this happens, the resize gripper on the status bar no longer resizes the frame.  It only resizes the client area of the status bar, which gets very glitchy.  It is easily reproduced using the SetPaneSize sample.  In OnCreate, move the call to EnableDocking above the creation of the status bar.


  • InsertButton applied on CMFCMenuBar and CMFCToolbar will result in disabled controls in MDI mode too...

  • I have a bug problem with VS2008 and Vista SP1:

    Changing the source while the unmanaged/MFC application is interrupted crash and werfault.exe is creating a minidump.

    It impossible to work reasonable.

    I posted it on connect.microsoft.com in may 2008, but it was closed (not reproducable). I still have the problem on all Vista SP1 installations (even english ones!) and found today others with the same problem.

    Can you say anything about this issue ? In May I sent a minidump with heap, today I debugged VS2008 on my own and found interessing hints.

  • I have installed VS2008 and SP1. But I still can't find any documentation about the prereleased feature pack.

    This article (http://blogs.msdn.com/vcblog/archive/2008/04/07/visual-c-2008-feature-pack-released.aspx) said "The documentation for this feature pack has already been added  to MSDN online and will be included with the local MSDN documentation with SP1."

    Is it the problem of SP1 or my installation of SP1?

  • I mean I cannot find MFC feature pack documenation on my local machine. When I press F1 for the help of MFC feature pack class, MSDN still downloads help from Microsoft MSDN website.

  • I mean I cannot find MFC feature pack documenation on my local machine. When I press F1 for the help of MFC feature pack class, MSDN still downloads help from Microsoft MSDN website.

  • @Eric

    You need to install MSDN Library for Visual Studio 2008 SP1: http://www.microsoft.com/downloads/details.aspx?FamilyID=7bbe5eda-5062-4ebb-83c7-d3c5ff92a373&DisplayLang=en


  • @eric:

    In addition to samsa, you must set tools->options->help->online to local first or only. Otherwise online content will be prefered.



  • (maybe twice...?)

    I'v been trying to download the MSDN Library for VS2008 SP1 for a few days now. But after several moments I'm only getting a file of about 3kB in size instead of the full download of approx 2.15GB!

    Does anyone has the same problem or can someone at Microsoft please fix this problem? (I am able to download other huge files like MSDN Library VS2008 non-SP1).


Page 2 of 3 (34 items) 123