DLL Tutorial. Uses fewer resources
DLL files don't get loaded into the RAM together with the main program; they
don’t occupy space unless required. When a DLL file is needed, it is loaded and
run. For example, as long as a user of Microsoft Word is editing a document, the
printer DLL file is not required in RAM. If the user decides to print the document,
then the Word application causes the printer DLL file to be loaded and run.
Promotes modular architecture
A DLL helps promote developing modular programs. It helps you develop large
programs that require multiple language versions or a program that requires
modular architecture. An example of a modular program is an accounting
program having many modules that can be dynamically loaded at runtime.
Aids easy deployment and installation
When a function within a DLL needs an update or a fix, the deployment and
installation of the DLL does not require the program to be relinked with the DLL.
Additionally, if multiple programs use the same DLL, then all of them get
benefited from the update or the fix. This issue may occur more frequently when
you use a third-party DLL that is regularly updated or fixed.
Applications and DLLs can link to other DLLs automatically, if the DLL linkage is
specified in the IMPORTS section of the module definition file as a part of the
compile. Else, you can explicitly load them using the Windows LoadLibrary