[C ++/MFC quick learning series] sequence, mfc quick learning
In order to understand the OCCT source code and lay the foundation for better use of OCCT, I plan to study C ++ and MFC in my spare time. By the way, I will give a simple tutorial, you can also record yourself and serve everyone. Because most of the time is usually used to write papers, the part of this tutorial will be updated occasionally, but I should be able to do my best to speed up.
After all, if you want to graduate early, it was a day before, and the rest of the time should be a matter of seconds ~~~!!
As a preface, we will first introduce the habitual content. Below we will introduce C ++ and MFC respectively. Below are some examples of C ++.
C ++ introduction (from Baidu with mental retardation ):
C ++ is an object-oriented programming language developed on the basis of C language and is widely used. It is often used in system development, engine development, and other application fields to support features such as class, encapsulation, inheritance, and polymorphism. The C ++ language is flexible, the data structure of operators is rich, structured control statements, high program execution efficiency, and the advantages of advanced languages and assembly languages.
The C ++ language is an extension of the C language and draws classes from Simula, the ALGOL language draws a multi-purpose operator, a reference, and a variable can be described anywhere in the sub-program. It integrates the features of the Ada language class and the Clu language module, abstract classes are formed, and exception handling is learned from languages such as Ada Clu and ML, the BCPL language has the advantages of keeping C language compact, flexible, efficient, and easy portability, its support for data abstraction mainly lies in the concept and Mechanism of classes. Its support for object-oriented manners mainly relies on virtual mechanisms to function functions because the C ++ language has both data abstraction and object-oriented capabilities, high running performance, coupled with the popularity of C language, the transition from C language to C ++ language is relatively smooth, and the degree of compatibility between C ++ and C can make it easy for a large number of C Programs to reuse in the C ++ environment, making C ++ popular in just a few years.
Balabara ......... All right, please use MFC.
MFC Introduction: (from Wikipedia, which is known to be familiar with everything)
Microsoft Foundation Classes (MFC) is a class library provided by Microsoft. It encapsulates Windows APIs in the form of C ++ Classes, it also contains an application framework (the only one of Microsoft products) to reduce the workload of application developers. The classes include a large number of Windows handle encapsulation classes and many Windows built-in controls and components encapsulation classes.
Visual C ++ contains the MFC Application Wizard, which can be used for MFC-compatible applications. You can also manually add MFC support in the ATL program. There are various options in the Wizard to customize the features of the generated program, such as interface style, language, database development support, printing support, automation support, ActiveX support, network support, HTML-based help document support, etc. In terms of COM development, compared with ATL, MFC has relatively large components and the code is not short enough, but supports many functions, such as ActiveX Document encapsulation. In terms of interface development, MFC provides message loop encapsulation and uses message ing to avoid overhead of virtual functions. MFC also provides encapsulation classes for common Windows controls. The MFC extension DLL interface allows the MFC program to directly call the MFC class in the MFC extension DLL. MFC can also be used in standard DLL. The main advantage of MFC is that it can use an object-oriented method to call Windows APIs and develop applications more conveniently. MFC automates features commonly used in application development, and provides a document framework view structure and activity documentation such as an easy-to-Customize application framework. In addition, Visual C ++ has many built-in support for MFC, such as Class Wizard, to reduce software development time. You can use Class Wizard to quickly generate a Hello World Program.
Series organizational structure:
The series will spread and record knowledge in an easy-to-understand manner. The plan is divided into the following parts:
- 1. [C ++/MFC quick learning series]
- 2. [C ++/MFC quick learning series] C ++ language basics
- 3. [C ++/MFC quick learning series] object-oriented
- 4. [C ++/MFC quick learning series] advanced features of C ++ Language
- 5. [C ++/MFC quick learning series] basic and Framework Analysis of MFC
- 6. [C ++/MFC quick learning series] Analysis of MFC message ing mechanism
- 7. [C ++/MFC quick learning series] Detailed description of MFC documents, views, and frameworks
- 8. [C ++/MFC quick learning series] Analysis of common types of MFC
- 9. [C ++/MFC quick learning series] GDI and GDI +
- 10. [C ++/MFC quick learning series] Network Programming
Let's just wait for me to get started ~~~~~~!