Thread: what is the different?

  1. #1
    Unregistered
    Guest

    Question what is the different?

    can u tell me what is the difference betweeen mfc and win32 api? i am just quite blur with it.! anyway, i hope i can get a better answer from here. where can i get a best book about mfc? pls give some direction? merci!

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    >>can u tell me what is the difference betweeen mfc and win32 api?

    winapi is an API with a set of functions to work with windows. These functions include creating windows, drawing onscreen, memory manipulation.....etc

    MFC is a set of wrappers for winapi using c++. For example there are classes for frame windows, controls, lists, arrays...etc

    You are better off working with winapi to begin as you will get a better idea of how things work.

    As for a book on MFC...I'm reading Programming Windows with MFC by Jeff Prosise. Its a bit expensive to buy...but it seems to be a good book. It got some good reviews.

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    IMHO, MFC = bloatware.. and i wouldn't use it!

    cheers
    U.
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    4
    MFC is really quite nice. It does tend to produce large executables, but sometimes that's not a problem. The advantage to MFC is that you can produce GUI applications with a lot less code. Furthermore, MFC is written with C++ classes whereas the API is not, so it better lends itself to object oriented code.

    I would actually reccomend starting with MFC if you're a beginner. Starting from scratch with the API can be quite a headache, because it's not exactly an easy-to-use framework. MFC will help you get a kickstart. You'll probably find yourself needing to use bits of API code mixed in with MFC because it's at a lower level of abstraction and therefore more flexible. Then at some point if you need to write a really slim application or something, it'll be pretty easy to learn pure API.

    In short, I think MFC is a more gentle gateway into windows programming.

    Owlet

  5. #5
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Originally posted by Uraldor
    IMHO, MFC = bloatware.. and i wouldn't use it!

    cheers
    U.
    I agree. But we've had this discussion/argument many of times. There are advantages and disadvantages to everything.

    --Garfield
    1978 Silver Anniversary Corvette

Popular pages Recent additions subscribe to a feed