One of the most fundamental differences between Windows-based programs and MS-DOS-based programs is that MS-DOS programs use the functionality of the operating system to gain input from the user, while Windows programs use the operating system
Sends a message to process the user input.
The entrance to the Windows program is Winmain,ms-dos, which simplifies programming by hiding and constructing the message-control mechanism in MAIN,MFC by encapsulating the WinMain function.
MS-DOS programs direct data to the display cache and printer ports, which need to be directly related to the driver for the hardware device, and the GDI interface that is provided by the Windows program, and the program deals with GDI functions and hardware, GDI
The Function Reference device environment (data structure) interacts with the system's IO instructions and hardware, and GDI is almost as fast as the direct video access.
DLL, the use of dynamic link library DLLs, you can reduce the size of the memory space that the program occupies the disk, and facilitate the program's modular compilation debugging. The developers of the Microsoft Basic Class library have combined all the classes of the application framework into several
Built-in dynamic link library (MFC DLL)
Resource Editor, each project usually has a text-formatted resource description file (rc file), and the text file describes the item's menu, dialog box, string, hotkey resource, and items related to the item: Bitmap BMP and Icon ico file.
VC Learning Notes (continuous update)