C Board  

Go Back   C Board > General Programming Boards > FAQ Board

 
 
LinkBack Thread Tools Display Modes
Old 01-20-2002, 03:39 PM   #1
Registered User
 
Join Date: Jan 2002
Posts: 27
What is MFC?

I am learning c++ (doing very good).

I hear abouty MFC. Can somone please explain what that is and what it is used for...

Thank you
Hydro is offline  
Old 01-20-2002, 03:55 PM   #2
Just one more wrong move.
 
-KEN-'s Avatar
 
Join Date: Aug 2001
Posts: 3,232
MFC is the Microsoft Foundation Classes. It's a wrapper to the Windows API, which allows you to create windowed (GUI) programs under MS Windows. It's used by C++'ers to :cough:cheat:cough: their way around using the API. I'm sure a search on google would yeild a better explaination.
__________________
Gays can't love like real people

entropysink.com -- because arses weren't designed for running websites.
-KEN- is offline  
Old 01-20-2002, 04:37 PM   #3
Registered User
 
Join Date: Sep 2001
Location: England
Posts: 121
MFC allows development of applications much faster and easier than the API, although a degree of understanding of the API is needed to use it. MFC is good for large applications that would otherwise take a long time and a lot of code in API, or for things which interface with databases etc. The disadvantages of MFC are that it makes slower and bigger apps, largely because M$ invented it and it's just their way.

In an ideal world everything would be API, but development would take a lot longer. (actually in an ideal world we would all use Linux)

So to some up

Quote:
It's used by C++'ers to :cough:cheat:cough: their way around using the API
Robert602 is offline  
Old 01-20-2002, 04:51 PM   #4
Unregistered
Guest
 
Posts: n/a
MFC, as -Ken- has *coughed* ( ) is Microsoft Foundation Classes and requires ms visual c++.

It's just a class library and any c++ class library that is well written can improve development time in the right hands. But there is always a steep learning curve involved in their use. So that's one trade-off: the time it takes you to learn the class library fns etc. Another downside of using MFC or other class library as they usually enforce a particular way of doing things that may not suit everyone. Finally their is the factor of code bloat - and use of MFC is VERY guilty of this.

There are many class libraries available. Some are free. An excellent free class libray to take a look at is VXCL (the virtual X class library):

http://www.toddtown.com/

Not only is this library free it's also cross platform ie works on UNIX/linux.

Some folks recommend learning and using API first; the advantage being that if a class library fails to offer what you need you can always drop back to the API for a solution.

My personal feelings are: use whatever you are most comfortable with. And MFC sucks.
 
Old 01-20-2002, 10:39 PM   #5
Registered User
 
Join Date: Jan 2002
Posts: 75
MFC

MFC was invented by microsoft to keep their programmers dumb.
genghis is offline  
Old 01-21-2002, 01:06 PM   #6
....
 
Join Date: Aug 2001
Location: Groningen (NL)
Posts: 2,386
>MFC was invented by microsoft to keep their programmers dumb.

Ah, I see. And who did write the MFC?
Shiro is offline  
Old 01-21-2002, 01:18 PM   #7
Registered User
 
Join Date: Sep 2001
Location: England
Posts: 121
>Ah, I see. And who did write the MFC?

Good point.
Robert602 is offline  
Old 01-23-2002, 08:21 AM   #8
CaseY
Guest
 
Posts: n/a
So,

so,who creates all the class library? i meant who invented it?
i am just curious to know it.......why u said mfc makes the programmers dumb? is it because...all the function is avaiable for the programmers.
see yeah
 
Old 01-23-2002, 10:19 AM   #9
It's full of stars
 
adrianxw's Avatar
 
Join Date: Aug 2001
Posts: 4,833
>>> makes the programmers dumb?

MFC does not make programmers dumb. If anyone believes this to be true, then they can simply choose not to use it!

For a start, it is not necessary to use MFC, anything you can do in MFC you can do with the API, simply because MFC is just a wrapper around the API.

MFC is just Microsoft's class library, (there are others, Borland's VCL for example). It enables people who like/need to work with class libraries the capability of doing so. Some employers insist on using it, therefore MFC skills are of use. Generally, on "grey box" type applications, the development time is shorter.

Where MFC starts to break down is when you want to do some of the more sophisticated thing Windows is capable of doing. With some fooling around, you can make MFC do some of these things, but generally the API is more obviously the correct tool.

Use it or not. Your choice. I choose not too, others I work with do.
__________________
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
adrianxw is offline  
Old 01-23-2002, 02:14 PM   #10
Registered User
 
Join Date: Jan 2002
Posts: 27
move to faq board *cough*
Hydro is offline  
 

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wiki FAQ dwks General Discussions 192 04-29-2008 01:17 PM
WIndows programming? hostensteffa Windows Programming 7 06-07-2002 08:52 PM
Release MFC Programs & Dynamic MFC DLL :: MFC kuphryn Windows Programming 2 05-18-2002 06:42 PM
Beginning MFC (Prosise) Part III - Now What? :: C++ kuphryn C++ Programming 5 03-03-2002 06:58 PM
MFC is Challenging :: C++ kuphryn C++ Programming 8 02-05-2002 01:33 AM


All times are GMT -6. The time now is 10:42 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22