Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

yue feng

Common File Frameworks

This topic is 6026 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

Do most of people prefer to use Microsoft Common File Frameworks? What are some significant advantages of doing that? -_- Ji

Share this post

Link to post
Share on other sites
If you meant Microsoft Foundation Classes...

MFC is a bunch of code put together to take care of things you supposedly do each time you want to write a program, like creating window and storing data in arrays. Advantages of MFC:

1. It simplifies many things related to Win32. Just compare window related code in apps that do and do not use MFC.
2. It gives you a great deal of help when debugging.
3. It has containers and things like strings so you don''t have to implement them from scratch. STL also does this, but 1) MFC has much more error checking, at least when compared to MS''s STL implementation and 2) it is more integrated with Win32/CRT code. For example, CString allows you to do printf and LoadString on it, and supports TCHARs.
4. You generally write less code and have smaller exe files.

Disadvantages of MFC:

1. It requires you to link with the MFC DLL, which is about 1MB.
2. You have to learn it.
3. It''s (a lot of) Microsoft code, if that''s important for you.
4. It''s not portable.
5. It''s slower than plain C++, but I doubt that you''ll see the difference.

I''ve seen a few games using MFC, usually a custom-build version of it. I personally use MFC everywhere I can, as each of my programs clearly benefits from it.

Share this post

Link to post
Share on other sites

  • 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!