locked
MFC Question RRS feed

  • Question

  • Microsoft Released Windows 8 Dev With WinRT. What do you think about the future of MFC ? It is going to be Dead? or MFC is Strong ?

    If you think this question is stupid. I am very sorry.


    Darshana
    Friday, November 4, 2011 1:29 PM

All replies

  • All applications cannot be touch Metro style apps (yet). Windows 8 will
    support non-metro (desktop) apps too. MFC can be used to write Desktop
    apps for Windows 8.
    But Microsoft hasn't given best practises yet for developping Win8
    Desktop apps. All we know is that MFC is still part of next version of
    Visual C++!
    BTW the MFC app wizard in VS-next has a new "SDL Check" checkbox, which
    enables C++ code analysis for the project. Code analysis for native C++
    is a great feature in VS-next.
     
    Friday, November 4, 2011 4:08 PM
  • I've taken a close look at MFC 11 (source code and actually running apps created with MFC 11)

    New in MFC 11:

    - MFC is no longer supported on Windows XP (meaning it can't be used if you want to distribute your app (dynamic or statically linked) on XP

    - CRT no longer supported on Windows XP (same as above)

    - a couple of minor bug fixes included

    - same BCGSoft version (from 2007) included in MFC 11

    - no new features

    - new compile time directive that allows static MFC linking smaller for dialog and console based apps (_AFX_NO_MFC_CONTROLS_IN_DIALOGS)

    So you can make any conclusion you want as to the future of MFC.


    • Edited by Ted_ Saturday, November 5, 2011 8:11 PM
    Saturday, November 5, 2011 8:08 PM
  •  "Ted_" wrote in message news:2aa8bf86-5082-4e2e-94d2-81f4a78e62e5@communitybridge.codeplex.com...

    New in MFC 11:

    - MFC is no longer supported on Windows XP (meaning it can't be used if you want to distribute your app (dynamic or statically linked) on XP
    - CRT no longer supported on Windows XP (same as above)
    - a couple of minor bug fixes included
    ...<

    When MFC10 came out, the inclusion of the 'feature pack' as an integral part of it, would seem to indicate that Microsoft were now, after a while in which nothing much happened, committed to bringing MFC up to date.

    I have reported one or two bugs via Microsoft Connect, which I'm pleased to say they have reported as being fixed for the next version.

    But I (and I imagine many others) have a customer base which includes many people still using computers running XP.   It seems likely that this will still be the case when MFC11 comes out.   That would make doing anything commercial with MFC11 impossible.   So why on earth are they including this constraint?   Is it a design feature, or just a problem with the development version?

    Dave

    -- David Webber
    Mozart Music Software
    http://www.mozart.co.uk
    For discussion and support see
    http://www.mozart.co.uk/mozartists/mailinglist.htm


    David Webber Author of Mozart music notation software http://www.mozart.co.uk
    Sunday, November 6, 2011 9:33 AM
  • >...That would make doing anything commercial with MFC11 impossible.   So why on earth are they including this constraint?

    A question several of us have wondered the madness of.

    I suggest you and anyone else here equally concerned add a
    vote/comment to this report:

    https://connect.microsoft.com/VisualStudio/feedback/details/690617/bug-apps-created-with-crt-and-mfc-vnext-11-cannot-be-used-on-windows-xp-sp3

    ... not that it'll likely have any effect on whoever makes such
    decisions. :(

    Dave

    Sunday, November 6, 2011 10:18 AM
  • Also consider that as well as XP, the equivalent Windows 2003 Server
    OS's will also be unable to use VC11.

    I wonder if they're trying to get us to move to gcc?

    Dave

    Sunday, November 6, 2011 12:58 PM
  • But I (and I imagine many others) have a customer base which includes many people still using computers running XP.   It seems likely that this will still be the case when MFC11 comes out.   That would make doing anything commercial with MFC11 impossible.   So why on earth are they including this constraint?   Is it a design feature, or just a problem with the development version?


    By design.  If you look at the changes to MFC they've changed all the references of LoadLibrary/GetProcAddress and OS Checking to use direct function calls instead.  This clearly didn't need to be done, and is only meant to hurt chances of it running on XP.  However in the CRT they changed the entire way locales are handled.  They changed locale IDs (LCID) to use locale names instead.  This is pretty useful for locales that don't have an associated ID I guess but it limits usage to Vista or higher.  They could have written it to have a fallback to use nlsdl (downlevel) APIs to convert back to ID on XP but I guess the decision to abandon XP was already made.  They also call GetTickCount64 which is only available on Vista and above.
    Sunday, November 6, 2011 1:23 PM
  • I understand this is painful for software vendors which have XP customers (that is, everyone!), I'm happy to know that, in one year or two, we won't have to support this 10-year old operating system. This also means using modern APIs like, for example, Direct2D instead of GDI.

     

    Sunday, November 6, 2011 2:40 PM
  • "David Lowndes [MVP]" wrote in message news:687a9391-1a5c-4d71-befb-77b8e37de010@communitybridge.codeplex.com...

    ...That would make doing anything commercial with MFC11 impossible.   So why on earth are they including this constraint?

    I suggest you and anyone else here equally concerned add a
    vote/comment to this report:
    https://connect.microsoft.com/VisualStudio/feedback/details/690617/bug-apps-created-with-crt-and-mfc-vnext-11-cannot-be-used-on-windows-xp-sp3

    ...

    Done, but as you say, I'm not optimistic.

    Dave

    -- David Webber
    Mozart Music Software
    http://www.mozart.co.uk
    For discussion and support see
    http://www.mozart.co.uk/mozartists/mailinglist.htm


    David Webber Author of Mozart music notation software http://www.mozart.co.uk
    Sunday, November 6, 2011 4:30 PM
  • I've just seen the following thread in this forum: Request for MFC suggestions, which is a year old.

    Pat Brenner says many of the suggestions of this thread should be in VS11.

    Thursday, December 1, 2011 3:34 AM