How to control dll loading before entering main () function in visual c ++

How does a Visual C ++ program load a dll before entering the main function in visual studio express 2008? In a project developed by others, dll loaded "a.ext: native", but I don't know how this is configured.

+3
source share
1 answer

There are various ways to instruct the OS to load the DLL. The most common way is to link to the .lib file (via the project linker settings), where .lib is the time associated with the DLL. When the linker finds this .lib file at the linking stage, it knows that the DLL is required and internally modifies the EXE to tell the operating system that the DLL must exist to run the program.

, DLL - . - DLL , , , .

DLL, .

+2

All Articles