MFC development-MFC project creation

At the beginning, some people may wonder why they should learn MFC. MFC is an old thing. Now there are fewer and fewer people. Most of the people who learn it are to strengthen the basic knowledge of C++. Of course, learn other aspects of knowledge. Naturally, knowledge of C++ can be strengthened. Some people say that MFC is closer to the bottom of the language and can let you know how to achieve window creation.

At first, I felt that MFC is not simple and clear without QT, and QT is more suitable for the current development market, so I chose QT, but there is no way, the school teacher teaches MFC, in order to hand in homework, so I still have to come back and learn about MFC development.

The most important prerequisite for learning MFC is to learn the basic content of C++ well, otherwise you will not be able to understand the things in MFC. If you are getting started with MFC, I recommend the Sun Xin tutorial on the b site . The explanation is very detailed. You can follow the textbook VC++ to explain this book in depth. According to the content of the textbook, a senior sister gave me a copy (thank you very much).

Now that I started, let’s talk about the creation of the MFC project by the way. Created
in Visual C++ 6.0 as follows, select the type, enter the name, and create
Insert picture description here

In visual stdio, because the instructional videos on the Internet are all earlier versions, I use both 2019 and 2017. I have not been able to find the MFC module, and then I realized that I would need to download additional components and
Insert picture description here
then create
Insert picture description here
it. There are only a few simple projects to create similar to VIsual6.0 MFC. Remember to remove this tick
Insert picture description here

The created class diagram is as follows
Insert picture description here

Guess you like

Origin blog.csdn.net/peixin_huang/article/details/101626290