Types of Windows applications
-Console Program Console
DOS program, itself without windows, executed through Windows DOS window
-Window Program
Has its own window that can interact with the user
-Library Program
A program that stores code, data, and executable files from which code executes and gets data
-Static Library Program
Extension lib, from which to get code when executing file execution
-Dynamic Library Program
extension DLL, which puts the function address into the execution file when compiling the linked program
Comparison of three different applications
-Entry function
Console program-main
Window Program-winmain
Dynamic Library Program-dllmain
Static Library program-No entry function
-How files exist
console programs, Windows programs-exe files
Dynamic Library Program-dll file
Static Library program-lib file
-Execution mode
Console-Execute within DOS window
Window program--to own the Windows within its own window to execute
Dynamic Library Program-cannot execute itself, called by an executable program or other DLL
Static Library program-execution does not exist, code is embedded in the executable file or DLL
Windows Development tools and libraries
-VC's Compilation tool
compiler CL.EXE to compile source code into target Code (assembly)
Linker LINK.EXE target code, library chain to the final file
The resource Compiler RC.EXE compiles the resource and eventually deposits the final file (. rc) via the linker
-windows Library and header files
-windows Library
Kernel32.dll-provides the core APIs such as processes, threads, memory management, and so on.
User32.dll-provides APIs such as windows, messages, etc.
gdi32.dll-drawing-related APIs
-Header File
windows.h-collection of all Windows header files
Windef.h-windows Data types
Winbase.h-kernel32 's API
WINGDI.H-GID32 's API
Winuser.h-user32 's API
Winnt.h-unicode Character Set support
Windows core Programming 01-windows applications