1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Rep Power

    MFC basic question

    I need to learn MFC programming and there a few things I haven't understood

    So MFC provides C++ based classes that ultimately call Windows API functions, but hides the actual function call from us. Is this correct?

    Does an exe file created from a project that uses MFC need MFC to be preinstalled on the computer that it is supposed to run on?
  2. #2
  3. I'm Baaaaaaack!
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Jul 2003
    Rep Power
    MFC is not really a class-based approach, though it looks like it on the surface. While you can write MFC-based applications by hand, there are many simultaneous edits that are necessary any time you make a change to the graphical elements that should be done through the Visual Studio IDE. In my experience the value of MFC over making my own classes based on the underlying API was low, so unless you have to use MFC you are probably much better off exploring other opportunities. To my knowledge there are no specific libraries (that are not already installed as part of the OS) that are necessary to run MFC-based applications (presuming, of course, you install a Release executable).

    My blog, The Fount of Useless Information http://sol-biotech.com/wordpress/
    Free code: http://sol-biotech.com/code/.
    Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html.
    Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html.
    LinkedIn Profile: http://www.linkedin.com/in/keithoxenrider

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw
  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    Originally Posted by mahaju
    Does an exe file created from a project that uses MFC need MFC to be preinstalled on the computer that it is supposed to run on?
    Microsoft already pre-installs MFC on all Windows computers since about Windows 95 :).
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo