Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is a DLL loaded entirely or only some functions?

Tags:

c++

dll

When a program uses a dynamic shared library, does it load the DLL entirely (so you can almost erase the DLL from disk during application is running) or does it load only a part of the DLL according to its need at each time during the runtime life of the application?

like image 906
Guillaume Paris Avatar asked Feb 24 '11 18:02

Guillaume Paris


1 Answers

DLL gets loaded entirely. DLLs are same as EXEs in almost all aspect; the only big difference between them is, DLLs are not executable. It doesn't have main() function - the start of a program.

like image 138
Nawaz Avatar answered Sep 28 '22 01:09

Nawaz