Jump to content
  • Advertisement
Sign in to follow this  
gretty

Win32 / MFC / Widgets Differences

This topic is 3123 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I am trying to understand the differences between Win32, MFC & widgets. I thought that win32 is like C & MFC is like C++ where MFC is just win32 but with classes? Am I right in saying that win32 is the lower level windows API 'communicator' & MFC is higher level windows commands & that MFC functions are really a group win32 functions. For example, the function(made up) Dialog.CreateDialog() in MFC performs the code of win32 of registering a class, creating a message loop, creating a WNDPROC, showing the window all in one function. Can you clear up the differences between the 3...languages?...API?. Am I right in when I say Win32 is the lowest level communication with the OS & MFC is the highest level?

Share this post


Link to post
Share on other sites
Advertisement
Yeah sounds like you got it.
Basically MFC lets you do more with less lines of code.At least that's the idea. With Win32 you have to setup everything in your code by hand like you said. On the other hand with MFC uses C++, which most consider more compilcated than C, and it forces you to use the MVC pattern which also adds complexity. So MFC is not just win32 with classes because of that.
You might be interested in this video that covers latest additions to MFC:
"MFC wraps native Windows APIs in convenient C++ wrapper classes that are defined for many Windows objects and common window controls. Not surprisingly, MFC wraps some of the new capabilities in Windows 7 (and will continue to do so in the future)."

[Edited by - daviangel on May 3, 2010 7:55:23 AM]

Share this post


Link to post
Share on other sites
WxWidgets is a refinement of MFC. It's better. But you are doing well in looking into MFC source code. That will teach you a few win32 Tricks and also how to design your own win32 Framework.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!