Thread: Mfc

  1. #1
    Registered User
    Join Date
    Jan 2002


    What exactly is MFC? and is it similiar to Win32? if so...which is better?

    <<Such a newb

  2. #2
    Registered User
    Join Date
    Feb 2003
    MFC = Microsoft Foundation Classes.....MFC has everything pretty much laid out for you, and most people around here prefer Win32/Api/WHATEVER over MFC....I think this belongs more in Windows programming than here btw

  3. #3
    ¡Amo fútbol!
    Join Date
    Dec 2001
    As previously stated, they are the Microsoft Foundation Classes. Basically, they wrap up the win32API in an OO environment and cut down on design time.

  4. #4
    Registered User
    Join Date
    Apr 2003
    Here's my take:

    MFC = predefined classes that you can use to make windows programming easier. However, there's a lot of code involved, so it makes programs larger and slower.

    windows programming = programs that use windows to interface with the user

    win32 API= hundreds of functions provided by Windows to be used by your Windows application. Because there are so many functions, using them in the raw can be difficult--just understanding what they all are is a task in itself.

    win32 programming=using the win32 API functions directly, rather than indirectly through the MFC classes.

    Using only the Win32 API, I coded an application which created a window and displayed Hello World in it. For that simple application, I had to write roughly 100 lines of code. Then using MFC, I created a text editor application by making a few selections in a Wizard and then clicked Ok, and I had a fully functioning text editor.
    Last edited by 7stud; 04-23-2003 at 10:01 PM.

  5. #5
    Registered User Xei's Avatar
    Join Date
    May 2002
    I hate MFC. I don't trust its stability either. I'd rather use Win32 API any day, and thats what I recommend you do too.
    "What are you after - the vague post of the week award?" - Salem
    IPv6 Ready.
    Travel the world, meet interesting people...kill them.
    Trying to fix or change something, only guaruntees and perpetuates its existence.
    I don't know about angels, but it is fear that gives men wings.
    The problem with wanting something is the fear of losing it, or never having it. The thought makes you weak.

    E-Mail Xei

  6. #6
    Registered User
    Join Date
    Apr 2003
    Only use MFC when there is no other posible solution without one... adding MFC will make your program have more dependencies.

    MFC also uses some number of TLS, which might given you problem on win9x machine since the max TLS slot availabel is 64 slot, Win2k has upgraded to 1088 (1024 + 64) .... I learn that in a hard way

    Stick with Win32 APIs

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 08:52 PM
  2. Release MFC Programs & Dynamic MFC DLL :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 05-18-2002, 06:42 PM
  3. Understanding The Future of MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 04-15-2002, 09:08 PM
  4. Beginning MFC (Prosise) Part III - Now What? :: C++
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 03-03-2002, 06:58 PM
  5. MFC is Challenging :: C++
    By kuphryn in forum C++ Programming
    Replies: 8
    Last Post: 02-05-2002, 01:33 AM