Why do we need to link kernel32.dll, user32.dll, etc… in Windows C++?
问题 Why does Visual Studio by default include Additional Dependencies of kernel32.dll, user32,dll, winspool.lib, etc...? Why do these resources need to be linked into C++ projects on Windows and are they actually turned into machine code and inserted directly into each executable or are they kept separate from the executable and a link is made between them at run-time? 回答1: In order for a C++ application to run under windows, it needs at least a few system services. For example, it needs to