http://bbs.csdn.net/topics/391817496
I did not think more than 10 years later there are people struggling to learn MFC, I take some time to give new people a summary.
The 1th point of view after learning MFC, you will understand the idea of programming, and then learn other languages faster.
Said small white to go to the United States to learn technology, Big Black advised him: "Why don't you first to North Korea, then fly from North Korea to the United States", small white incomprehension. The big black goes on to say, "Do you want you to go to North Korea before going to America, not closer to America than from China?" "Little white suddenly dawned," and you go to North Korea, where there is a golden sun shining, you will understand the idea of technology. It's quick to learn any technology behind it. "So small white to North Korea, then he knew the original North Korea is the best place, he gave big black long-distance call, Big Black asked:" How do you feel? "Small white excited to say," I am learning to carve a chip with a knife, I heard that the United States are moving buttons, learn the real thing. ”
Some people want to say, "You see I was first learned three years of MFC, and then learn other languages as soon as," is that if you learn three years of Java or C #, then learn other languages faster. You learn three years MFC is not to compare with 0, is to learn three years of other languages than. In economics this is called opportunity cost, Mankiw "when you are faced with a choice, consider the opportunity cost."
The 2nd point of view MFC is close to the bottom of the system, suitable for system-level development, learning that he can understand the operating system.
MFC can call C directly, other languages cannot call C directly? What does the. Net interop do? Wake Up! Don't say C, even MFC DLLs have a way to invoke it.
Do you really think learning CDocument, CView, CWnd, CFrameWnd ... Are these things going around that will make Windows more understandable? A deeper understanding of windows to learn WIN32 programming, learning Windows core programming, not the MFC, and WINRT than Win32 to use more.
The 3rd point of view is that MFC develops programs with high efficiency
MFC is mainly used to develop client programs, here should be compared with C #, C # is a managed program, now C # developed Windows program has been able to compile into native, operating efficiency increased by about 1.6 times times, MFC is sinking boat side thousand sails, the cabin people still thought in the waves. By the right, what is the interface of Visual Studio developed with?
There are some points of view, like what DAO Ah Jian, and what "you MFC with not good, also use Bad C #", Do not list. Most of the time dialectics is a rough look is very philosophical, practically no practical guiding significance.
Why do some people recommend MFC?
At the end of the Qing Dynasty to abolish the Imperial examination system, the exam of the Beijing to kneel outside the hunger strike protest, Chodo on top of the minister insisted on how good the imperial examination. Yes, you want these old scholar study Classics learning for the rest of his life, and suddenly do not test, how many years of painstaking efforts in vain. Physics, Chemistry, algebra, almost sentenced them to death. For a person who has been learning MFC for many years, but not other languages, is basically a deep hold-up. I remember there was an old hedgehog in the Ice Age, and the flood was coming, and he hid in the hole. "I am born in this hole and I will die in this hole." Persistence is a quality, stubborn and old-fashioned is another matter. This is a good lesson for beginners.
Why are there many students who have just graduated from the university to study MFC?
Because their teacher is the person who said above.
MFC always has a suitable place to use it?
It is suitable for developing Windows client programs in the 90 's.
is MFC now useless at all?
No, history has left some of MFC's source code to be maintained. May occasionally use several open-source projects, like occasionally, when ammunition is not enough to spell bayonets.
What language should MFC compare with?
Borland C++,VB6,DELPHI,PB and so on.
Who else needs to care about MFC?
It historians need to capitalize close-up MFC's once-fleeting splendour, when archaeologists need to study this fossil.
Completely abandon the decline of MFC, the new advice! --eat melon crowd, tear force