What exactly is MFC? and is it similiar to Win32? if so...which is better?
<<Such a newb
What exactly is MFC? and is it similiar to Win32? if so...which is better?
<<Such a newb
MSVC++~
MFC = Microsoft Foundation Classes.....MFC has everything pretty much laid out for you, and most people around here prefer Win32/Api/WHATEVER over MFC....I think this belongs more in Windows programming than here btw
As previously stated, they are the Microsoft Foundation Classes. Basically, they wrap up the win32API in an OO environment and cut down on design time.
Here's my take:
MFC = predefined classes that you can use to make windows programming easier. However, there's a lot of code involved, so it makes programs larger and slower.
windows programming = programs that use windows to interface with the user
win32 API= hundreds of functions provided by Windows to be used by your Windows application. Because there are so many functions, using them in the raw can be difficult--just understanding what they all are is a task in itself.
win32 programming=using the win32 API functions directly, rather than indirectly through the MFC classes.
Examples:
Using only the Win32 API, I coded an application which created a window and displayed Hello World in it. For that simple application, I had to write roughly 100 lines of code. Then using MFC, I created a text editor application by making a few selections in a Wizard and then clicked Ok, and I had a fully functioning text editor.
Last edited by 7stud; 04-23-2003 at 10:01 PM.
I hate MFC. I don't trust its stability either. I'd rather use Win32 API any day, and thats what I recommend you do too.
"What are you after - the vague post of the week award?" - Salem
IPv6 Ready.
Travel the world, meet interesting people...kill them.
Trying to fix or change something, only guaruntees and perpetuates its existence.
I don't know about angels, but it is fear that gives men wings.
The problem with wanting something is the fear of losing it, or never having it. The thought makes you weak.
E-Mail Xei
Only use MFC when there is no other posible solution without one... adding MFC will make your program have more dependencies.
MFC also uses some number of TLS, which might given you problem on win9x machine since the max TLS slot availabel is 64 slot, Win2k has upgraded to 1088 (1024 + 64) .... I learn that in a hard way
Stick with Win32 APIs
Merc