PDA

Click to See Complete Forum and Search --> : Mfc?


petrus
Aug 9th, 2002, 12:47 PM
I'm new to making windows in Visual C++, and don't really know what MFC is, i think it stands for "Microsoft Foundation Class", i know how to do a window with WNDCLASSEX,CreateWindowEx.
What's MFC?

rajab natshah
Aug 9th, 2002, 02:48 PM
Hi ,
The MFC Library is a coloection of C++ classes and global function designed for the rapid develeopment of Microsoft Windows - based application .MFC offers many advantages to C++ develpers at all levels , from beginners to sesoned professionals . It simplifes Windows programming , shortens develpment time , and makes code more portagble wthout reducing programming freedom and flexibility . MFC provides easy access to hard to program thchnologies linke face features such as property sheet, print preview , shortcut menus and customizable folotati toolbars complete with Toolts..:)

petrus
Aug 9th, 2002, 03:20 PM
I've heard on other places in this forum that MFC is really a bad thing, hard to code and makes the code more unreadable! is that true?

parksie
Aug 9th, 2002, 03:25 PM
It's difficult to code by hand -- if you work within the IDE it's dead simple and very quick to do.

Portable? Hell no, it only works on Windows, and it makes *no* use of the STL which portable C++ programs should ;)

It doesn't necessarily mean unreadable; the unreadable parts are those auto-generated by the IDE which you shouldn't need anyway (they glue the dialogue items to the code).

rajab natshah
Aug 9th, 2002, 03:26 PM
hi ,
my brather .
No the MFC is Good for programing , but it must deficalt in the first but it by mny programing you must ander stant it...

crptcblade
Aug 9th, 2002, 03:35 PM
Originally posted by rajab natshah
hi ,
my brather .
No the MFC is Good for programing , but it must deficalt in the first but it by mny programing you must ander stant it...

You seem overly excited about MFC...do you work for MS or something?

;)

rajab natshah
Aug 9th, 2002, 03:40 PM
hi,
Yes I'm take the trak of MCSD to make Ms aplecation
this is my favorites new languages.. for my ..
i'm good in vb but I wont to make brofetienal in VC++

petrus
Aug 9th, 2002, 03:40 PM
Me? Nononono, i just wanted to know what it was!

crptcblade
Aug 9th, 2002, 03:43 PM
Originally posted by rajab natshah
hi,
Yes I'm take the trak of MCSD to make Ms aplecation
this is my favorites new languages.. for my ..
i'm good in vb but I wont to make brofetienal in VC++

Oh, well now I understand.

:)

CornedBee
Aug 13th, 2002, 06:34 AM
parksie: he probably meant the portability from 16-bit to 32-bit windows. It sure helped a lot there - you often only had to recompile.

MFC is a nice thing to have. I actually don't think it's hard to read as long as you know what all the strange macros mean. It sure is impossible to read for a normal C++ programmer.

You better get really familiar with the API and only then start programming with MFC if you want to.