Position: Home page » Blockchain » MFC is an application blockchain
MFC is an application blockchain
Publish: 2021-04-30 08:44:02
1. MFC is the abbreviation of Microsoft Foundation classes. It is a huge class library. It can be understood as an architecture for developing software on windows. It is customized by Microsoft for Visual C + +. The class library provides a set of general reusable class libraries for developers to use
before MFC, windows used the Win32 API for programming, and then MFC appeared, which improved the efficiency of software development to a certain extent. It is the encapsulation of the Win32 API, so it is easy to use, but its performance will be lower than that of the development of Win32. Each of them has its own advantages
before developing interface programs on windows, MFC was the most suitable one, which could give consideration to both efficiency and performance. Later, with the development of. Net C, MFC was not the most efficient way of development. Moreover, if MFC was not used well, there were many problems. However, although everyone said that MFC was not good, we still had to use it.
before MFC, windows used the Win32 API for programming, and then MFC appeared, which improved the efficiency of software development to a certain extent. It is the encapsulation of the Win32 API, so it is easy to use, but its performance will be lower than that of the development of Win32. Each of them has its own advantages
before developing interface programs on windows, MFC was the most suitable one, which could give consideration to both efficiency and performance. Later, with the development of. Net C, MFC was not the most efficient way of development. Moreover, if MFC was not used well, there were many problems. However, although everyone said that MFC was not good, we still had to use it.
2. MFC is the abbreviation of Microsoft basic class library. It is a C + + class library implemented by Microsoft. It mainly encapsulates most of the windows
API functions. VC + + is the integrated development environment of C / C + + developed by Microsoft. The so-called integrated development environment means that you can edit, compile and debug with it, instead of using a variety of tools to rotate operation. It is more flexible. Sometimes people say that VC also refers to its internal compiler. The integrated development environment must have a compiler kernel. For example, one of the compiler kernels of DEVC + + is GCC
MFC is not only a class library, but also a framework. You should have tried to create a new MFC project in VC + +. The development environment will automatically generate many files for you. At the same time, it uses mfcxx.dll. XX is a version, which encapsulates the MFC kernel, so you can't see the message loop in the original SDK programming in your code, because the MFC framework helps you encapsulate it, so that you can focus on the logic of your program instead of the things that need to be repeated every time you program. However, because it is a general framework, it has no best pertinence, Of course, it has lost some flexibility and efficiency. However, MFC's packaging is very shallow, so the efficiency loss is not big. The flexibility is OK. Although there are many defects, it is still a better thing. I think it is not inferior to KFC
API functions. VC + + is the integrated development environment of C / C + + developed by Microsoft. The so-called integrated development environment means that you can edit, compile and debug with it, instead of using a variety of tools to rotate operation. It is more flexible. Sometimes people say that VC also refers to its internal compiler. The integrated development environment must have a compiler kernel. For example, one of the compiler kernels of DEVC + + is GCC
MFC is not only a class library, but also a framework. You should have tried to create a new MFC project in VC + +. The development environment will automatically generate many files for you. At the same time, it uses mfcxx.dll. XX is a version, which encapsulates the MFC kernel, so you can't see the message loop in the original SDK programming in your code, because the MFC framework helps you encapsulate it, so that you can focus on the logic of your program instead of the things that need to be repeated every time you program. However, because it is a general framework, it has no best pertinence, Of course, it has lost some flexibility and efficiency. However, MFC's packaging is very shallow, so the efficiency loss is not big. The flexibility is OK. Although there are many defects, it is still a better thing. I think it is not inferior to KFC
3. Class libraries is a class library provided by Microsoft. It encapsulates Windows API in the form of C + + classes and contains an application framework to rece the workload of application developers. It contains a large number of windows handle encapsulation classes and many windows built-in control and component encapsulation classes.
it is not software, but a class library, which makes development easy.
it is not software, but a class library, which makes development easy.
4. MFC (Microsoft Foundation classes) is a class libraries provided by Microsoft. It encapsulates Windows API in the form of C + + classes and contains an application framework to rece the workload of application developers. The classes include a large number of windows handle encapsulation classes and many windows built-in control and component encapsulation classes.
5. MFC is an API encapsulated by Microsoft
What do you mean< As an operating system that provides powerful application programming interface, windows is indeed convenient for many programmers. The traditional development of Win32 (directly using Windows API) is very difficult for programmers, because there are too many API functions and their names are very messy. A window from scratch is often hundreds of lines of code. MFC is a perfect combination of object-oriented programming and application framework. It classifies and encapsulates the traditional API, and creates a general framework for your program. As long as you add a few lines of code, you can form your own program. It's very convenient
if you are not a programmer, you may still not understand what I said
if it helps you, remember to give me extra points, thank you~
What do you mean< As an operating system that provides powerful application programming interface, windows is indeed convenient for many programmers. The traditional development of Win32 (directly using Windows API) is very difficult for programmers, because there are too many API functions and their names are very messy. A window from scratch is often hundreds of lines of code. MFC is a perfect combination of object-oriented programming and application framework. It classifies and encapsulates the traditional API, and creates a general framework for your program. As long as you add a few lines of code, you can form your own program. It's very convenient
if you are not a programmer, you may still not understand what I said
if it helps you, remember to give me extra points, thank you~
6. MFC is an API encapsulated by Microsoft. What do you mean? Windows, as an operating system providing powerful application programming interface, is indeed convenient for many programmers. The traditional development of Win32 (directly using the windows interface function API) is very difficult for programmers, because there are too many API functions, and the names are very messy. Building a window from scratch is often hundreds of lines of code. MFC is a perfect combination of object-oriented programming and application framework. It classifies and encapsulates the traditional API, and creates a general framework for your program. As long as you add a few lines of code, you can form your own program. Very convenient. If you are not a programmer, you may still not understand what I said.
7. MFC is now really not a lot of use! However, MFC may be used in some older computers or devices with older operating systems (such as Windows CE operating system for instrial touch screen)< In addition, MFC may be considered in the UI design of real-time systems with low-level drivers and high performance requirements (c + + is a low-level Library)< In a word, MFC is mainly used in device driver development, factory integrated system development and old system maintenance.
8. 1. File name app. H (CPP) application class
the base class of cmyapp is cwinapp, and the base class of cwinapp is cwinthread. The cwinthread class is used to control threads (see the explanation of terms below), including the creation, running, termination and suspension of threads. It's actually what windows runs first, and when the program starts, it will put the main window on the screen. C or C + + starts from the main() function, while VC + + starts from the winmain() function, and the winmain() function is implied in this application
2. The base class of cmainfrm. H (CPP) main framework class
is CFrameWnd, which displays the main window and is where we find the menu bar, window title bar and toolbar, The main window object is responsible for everything that appears in the window and surrounds the operation field, such as pictures, text and other graphics. This area is called the client area in the window. It is used to manage the application window display, such as: title bar, menu bar, toolbar, status bar, control menu, control button, etc. it is the package container of all MDI (multi document) and SDI (single document) sub windows
3. File name view. H (CPP) view class
the base class of cmyview is CView, which processes the client area. It is where we set the data format and display the data in the program. For example, when we create a word processor, we are editing the text. In fact, the view object is the window itself that appears at the top of the client area, which is used to let the user access the document through the window View class
4. Cmydoc. H (CPP) document class
the base class of cmydoc. H (CPP) is cdocument, which stores data for programs, stores all data in documents, and processes and displays them in view objects. It contains the data documents used by the application ring its running.
the base class of cmyapp is cwinapp, and the base class of cwinapp is cwinthread. The cwinthread class is used to control threads (see the explanation of terms below), including the creation, running, termination and suspension of threads. It's actually what windows runs first, and when the program starts, it will put the main window on the screen. C or C + + starts from the main() function, while VC + + starts from the winmain() function, and the winmain() function is implied in this application
2. The base class of cmainfrm. H (CPP) main framework class
is CFrameWnd, which displays the main window and is where we find the menu bar, window title bar and toolbar, The main window object is responsible for everything that appears in the window and surrounds the operation field, such as pictures, text and other graphics. This area is called the client area in the window. It is used to manage the application window display, such as: title bar, menu bar, toolbar, status bar, control menu, control button, etc. it is the package container of all MDI (multi document) and SDI (single document) sub windows
3. File name view. H (CPP) view class
the base class of cmyview is CView, which processes the client area. It is where we set the data format and display the data in the program. For example, when we create a word processor, we are editing the text. In fact, the view object is the window itself that appears at the top of the client area, which is used to let the user access the document through the window View class
4. Cmydoc. H (CPP) document class
the base class of cmydoc. H (CPP) is cdocument, which stores data for programs, stores all data in documents, and processes and displays them in view objects. It contains the data documents used by the application ring its running.
9. The typical use of virtual money pyramid scheme fraud money. A lot of people lost a lot. Don't be fooled!
10.
Hello, actually buy CPU, or to see your main purpose, because different uses, need to match with the hardware is not the same! Although second hand is cheaper, please accept it
Hot content