Results 1 to 8 of 8

Thread: What is MFC?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    82

    Question What is MFC?

    I know MFC = Microsoft Foundation Class, but what exactly is it? Is it the only way to create programs with a GUI, or what?

    I tried the MFC wizard in Visual C++ and ended up with a bunch of links and other stuff, Classes, Source Code files, and that was just for a SDI (single Document Interface)!

  2. #2
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    MFC is a bunch of classes that simplify Windows programming, but they a) are slow, b) require runtimes, and c) hide from you what's going on. In short, MFC = bad.
    Alcohol & calculus don't mix.
    Never drink & derive.

  3. #3
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    if you are gonna use MFC, you might as well just save time and use VB

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  4. #4
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Microsoft Fully Crap



    (BTW use the above answers)
    Baaaaaaaaah

  5. #5
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    Originally posted by Wynd
    MFC is a bunch of classes that simplify Windows programming, but they a) are slow, b) require runtimes, and c) hide from you what's going on. In short, MFC = bad.
    better go for normal C++ and API function call

  6. #6
    Megatron
    Guest
    MFC enscapulates the Win32 API to simplify it, but the downside is that you have to lug around the MFC DLLs with you.

    While MFC is generally considered bad among lesiure programmers due to its inconvience, some of the large companies require you to work with MFC. Because of that, it's a good idea to know a little MFC (even if you don't plan to work with it yourself).

  7. #7
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    I am not a favourite of MFC but sometimes it can be your choice because there are some things that are a real hell with Win32 API. Also a lot of proffesional applications written in C++ use MFC.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  8. #8
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    vc++ for example is MFC.
    MFC extremly simplifies the following:
    MDI
    Saving complicated data structures
    and some others

    it also seems to make some things harder.
    subclassing
    multithreading

    It's up to you if you want to use MFC. I like it, and I don't think spped is much an issue for normal applications. If you want to distribute over the internet, you should stay with API however, since the MFC dlls are pretty big (although they should be installed together with windows, you can never count on it)
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width