Darn it, now I am interested in MFC.
But the syntax and all those .h and .cpp files just gives me a headache, can anyone kindly briefly explain it to me the structure and other crap please?
Printable View
Darn it, now I am interested in MFC.
But the syntax and all those .h and .cpp files just gives me a headache, can anyone kindly briefly explain it to me the structure and other crap please?
MFC sucks. :)
Concisely put there ;)
Sure, for getting a program up and running, MFC is pretty good. Unfortunately, the code inside it is verging on the horrific side, plus it's fairly non-portable which is one of my projects for the future...
The VC++ documentation tells you about all the MFC stuff (this is one of the main stumbling blocks - it autogenerates a load of bumf which is almost impossible to read).
If you are interested, I suggest you learn C++ (just the basics), then learn to make a window with c++ (no mfc), then make an MFC project.Quote:
Originally posted by prog_tom
Darn it, now I am interested in MFC.
But the syntax and all those .h and .cpp files just gives me a headache, can anyone kindly briefly explain it to me the structure and other crap please?
Or you could just stop after step 2
:)
If you use dialogbox functions in regular c++ .. Its almost as ez as MFC. But the one thing I found nice about MFC.. Was how it handled ActiveX Controls (ocx). It auto-generated classes for you to use the ocx component.
.... I still dont know how to use OCXs in C++, but I've never needed to use OCXs in C++ ;)
but why are all the books talking about MFC? Even parksie and most other members always use MFC to answer our humble questions.
I dont think I have EVER seen parksie answer a question not specifically about MFC with MFC. You might be confusing MFC with the STL, the Standard Template Library. The two are completly different and separate.
Z.
And even if I can easily tell that they're using MFC, if they don't say it then I use STL or API just to punish them ;)Quote:
Originally posted by Zaei
I dont think I have EVER seen parksie answer a question not specifically about MFC with MFC. You might be confusing MFC with the STL, the Standard Template Library. The two are completly different and separate.
Z.