Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


What are the differences between MFC and Win32 Application


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
8 replies to this topic

#1 muimui1911   Members   -  Reputation: 122

Like
0Likes
Like

Posted 07 August 2005 - 09:52 PM

What are the differences between MFC and Win32 Application

Sponsor:

#2 HAM   Members   -  Reputation: 176

Like
0Likes
Like

Posted 07 August 2005 - 09:57 PM

MFC is basicly a library of OO wrapper classes that wrap the Win32 api, and provide objects for the basic window components (windows, buttons, checkboxes etc..). Essentially it is the win32 api objectified.

Also MFC provides some classes that resemble classes found in the STL. As MFC was made before STL was fully standardised.

My knowledge is incomplete. But that is the basic Idea.



#3 Sphet   Members   -  Reputation: 631

Like
0Likes
Like

Posted 07 August 2005 - 10:00 PM

The difference between Win32 and MFC are pretty straightforward:

The Windows API (Win32) uses a C interface to access windows functionality. It requires that you write all of your own code to manage windows and message handling. It is quite straightforward but you will need a good reference, like MSDN, and some good tutorials or samples to get started.

In contrast, MFC, which stands for Microsoft Foundation Classes, are a collection of C++ classes which encapsulate the Win32 API. MFC has some wizards which make the initial creation of a program quick and easy, but I have to admit the learning curve of MFC can sometimes be frustrating as Microsoft seems to have done everything in a way that can at times seem counter-intuitive.

Whenever I write an application I write it in MFC but I have been writing applications in MFC for a long time. If all you want is a message loop and a window handle for a game, use Win32. If you want to write a larger application like an editor, maybe MFC is the right tool.

Ideally, I would suggest skipping both Win32 and MFC and writing tools in .NET. I do not have any personal experience in it but people I work with sure can get a lot done using it. It may well be worth investigation.

Best of luck,

- S

#4 muimui1911   Members   -  Reputation: 122

Like
0Likes
Like

Posted 07 August 2005 - 10:06 PM

Quote:
Original post by Sphet

Whenever I write an application I write it in MFC but I have been writing applications in MFC for a long time. If all you want is a message loop and a window handle for a game, use Win32. If you want to write a larger application like an editor, maybe MFC is the right tool.

- S


I am planning to write an interactive 3D environment does that mean using WIN32 application is a better tool for it?

also is it possible to use openGL for oject creation and DirectXinput for the interactive control?
please give me some suggestion



millions of thanks

#5 Tera_Dragon   Members   -  Reputation: 260

Like
0Likes
Like

Posted 07 August 2005 - 11:36 PM

Quote:
Original post by muimui1911
I am planning to write an interactive 3D environment does that mean using WIN32 application is a better tool for it?

For a game Win32 is usually better.
I think I have also heard that MFC doesn't work well in fullscreen.

Quote:
Original post by muimui1911
also is it possible to use openGL for oject creation and DirectXinput for the interactive control?

You can render with opengl and use directinput for input.
____________________________________________________________Programmers Resource Central

#6 muimui1911   Members   -  Reputation: 122

Like
0Likes
Like

Posted 07 August 2005 - 11:53 PM

what about mouse movement like shooting games?

how can i do that, please give me some direction

#7 Tera_Dragon   Members   -  Reputation: 260

Like
0Likes
Like

Posted 08 August 2005 - 12:13 AM

You can use directinput for mouse movement. Or you can use GetCursorPos(POINT *p);
____________________________________________________________Programmers Resource Central

#8 muimui1911   Members   -  Reputation: 122

Like
0Likes
Like

Posted 08 August 2005 - 02:37 AM

How do i use that? can you give me some example and much clearer direction

millions of thanks

#9 Tera_Dragon   Members   -  Reputation: 260

Like
0Likes
Like

Posted 09 August 2005 - 09:55 AM

msdn
Though if you want a camera class look here and here.
____________________________________________________________Programmers Resource Central




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS