Home > Software engineering >  WIN32 and MFC one's own advantage
WIN32 and MFC one's own advantage

Time:10-04

Why real-time occasions with higher efficiency than the MFC WIN32 framework, such as real-time data read from the serial port and drawing, why use WIN32 better

CodePudding user response:

Because the MFC to invoke the API

CodePudding user response:

CodePudding user response:

//MFC runtime needs corresponding library, library encapsulates some WinAPI
//WinAPI, as long as the Windows version is correct, do not need to rely on libraries,

CodePudding user response:

MFC class is the API of packaging, packaging is to spend money,

CodePudding user response:

Directly from the manufacturer to get the goods and take the goods from the agent, can the price is the same as

CodePudding user response:

WIN32 window system is directly provided by the API interface, MFC is Microsoft WIN32 API and encapsulates all again made into a framework that you want to draw a dialog box, for example, a button, use the WIN32 you must write yourself a lot of code, but have a direct written using MFC class library, only need a new object of a button, if into the MFC provides the function of inside you will find that the bottom is the WIN32 API calls, so the MFC in efficiency will be lower, but the development efficiency will make you save a lot of time, of course, if you have a certain ability to develop, and your software has a high requirement on the interface, you need to encapsulate the WIN32 API, can make a similar MFC framework!

CodePudding user response:

MFC built a framework that can be more convenient developers win32 program
Win32 application is straightforward, no packaging, higher operation efficiency, but the MFC is shallow encapsulation, and many functions are inline, operation efficiency
  • Related