954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

what on earth is MFC

hello,

I saw option of MFC project in VS2005 and I d like to know what MFC is, and what can we do with MFC.

I presume MFC is C++ based, but does it need any framework? And whats the difference betwen Winapi and MFC? What can you actually do with MFC?

I know google is the best friend, but Id also like to hear some advanced opinions and recommandations.

Thanks in advance

jan1024188
Posting Whiz in Training
254 posts since Aug 2006
Reputation Points: 27
Solved Threads: 2
 

MFC is a (large) collection of classes for writing Windows applications in C++. It's a wrapper around the Win32 API.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

so I can write a Winapi app, and add MFC stuff?

jan1024188
Posting Whiz in Training
254 posts since Aug 2006
Reputation Points: 27
Solved Threads: 2
 

>so I can write a Winapi app, and add MFC stuff?
It's easier if you just recreate your program with MFC, rather than add MFC to an existing Win32 program.

John A
Vampirical Lurker
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 

But, I am learning Win32 programming for months now...I dont wanna start all over again...I think I will stay on Win32

thanks for help

jan1024188
Posting Whiz in Training
254 posts since Aug 2006
Reputation Points: 27
Solved Threads: 2
 

>what on earth is MFC
Crap,

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

I :* MFC :) Most things (but not all) are a lot easier with it. If you have been working with pure win32 api for the past year or so you won't have to learn everything all over again, and you can still use win32 api functions within an MFC program. MFC is really a heavy-weight wrapper around win32 api. If you want to write an MDI program then MFC can't be beat because the Microsoft compiler will generate a workable program for you in just a few clicks. I (or anyone else for that matter) can write a program with MFC in 1/4th the time that someone else will write it with pure win32 api. Sort of like the difference between writing a program with assembly or C language. Assembly is rarly ever manually used any more because it is a great deal faster easier to write it in C, C++ or other higher-level languages.

Ancient Dragon
Retired & Loving It
Team Colleague
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

Hey dragon,

Thanks for your post. Well I'll check a bit around and decide about MFC.

But for now, Ill stay on Win32 because od wow project.

jan1024188
Posting Whiz in Training
254 posts since Aug 2006
Reputation Points: 27
Solved Threads: 2
 

No, don't bother. win32 and the dotnet is all you need to worry about on windows.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

thanks for opinions

jan1024188
Posting Whiz in Training
254 posts since Aug 2006
Reputation Points: 27
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You