Jump to content
  • Advertisement
Sign in to follow this  
xmutantx

MFC or not to MFC?

This topic is 4860 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 ppl... I will start to work on a tetris like game. I want to know if i should use MFC or go with c?

Share this post


Link to post
Share on other sites
Advertisement
MFC is a library, C is a language. You can use MFC in C++, but MFC is not something you can program in.

If you're asking whether to use MFC or pure API calls, I'd say MFC. It's not that great, but it's better than API calls.

Share this post


Link to post
Share on other sites
For a tetris game, you shouldn't need to use MFC at all. All you should need to do is create a win32 window and create a drawing surface using your favorite API (OpenGL, DirectX, etc).

Share this post


Link to post
Share on other sites
To not MFC.

You really wouldnt take advantage of it for the cost that will hit yer DX app. Like kosmon_x said, just create a window and pop DX on it for the fun :).

Share this post


Link to post
Share on other sites
Quote:
Original post by xsirxx
You really wouldnt take advantage of it for the cost that will hit yer DX app. Like kosmon_x said, just create a window and pop DX on it for the fun :).

MFC is a foundation of windows routines and objects. It's main purpose is to help manage UI and messaging. I'm not sure what you mean by cost, but it will not speed up your game application. If anything, it will add more weight to it. And unless you plan to have a large amount of dialogs and window control interaction, it won't help you at all.

MFC would work nicely on the old Civilization games. They didn't use a custom UI, and the games were overwhelmed with interface controls.

Share this post


Link to post
Share on other sites
Quote:
Original post by Jiia
I'm not sure what you mean by cost, but it will not speed up your game application. If anything, it will add more weight to it.


Weight, cost. Didnt mean MFC is bad by anymeans. Just dont think in today's games it really has a place. Im sure there are some out there, but there is alot better for gaming. Didnt mean it would kill the app.

Share this post


Link to post
Share on other sites
Quote:
Original post by xsirxx
Weight, cost.

I totally misread your post. I thought you were saying there would be a speed bonus of some kind, but that it wasn't worth the effort. But looking back, I have no idea how I read it that way. Sorry about that.

Share this post


Link to post
Share on other sites
Quote:

I totally misread your post. I thought you were saying there would be a speed bonus of some kind, but that it wasn't worth the effort. But looking back, I have no idea how I read it that way. Sorry about that.


O heh, I figured something was wrong, but hey there are some die hard MFC fans out there, games or not. Can never be too sure when you make any comment about it :). You know some heated debate will happen.

Share this post


Link to post
Share on other sites
Thanks for the answers. I was wondering that if MFC can speed up the creation of the game. But most of you say its not needed if i am not creating a civilisation like game....

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!