c75c8ab7cd The use of DLLs helps promote modularization of code, code reuse, efficient memory usage, and reduced disk space. An assembly file contains an assembly manifest, type metadata, Microsoft intermediate language (MSIL) code, and other resources. // SampleDLL.cpp //. The following list describes the changes that have been introduced in Microsoft Windows 2000 and in later Windows operating systems to help minimize dependency issues: Windows File Protection In Windows File Protection, the operating system prevents system DLLs from being updated or deleted by an unauthorized agent. When you use a module definition file, you do not have to add the function keyword to the exported DLL functions. DLL advantages.
When a program uses a DLL, an issue that is called dependency may cause the program not to run. Therefore, the CLR can maintain a consistent set of assemblies that are used in the application. For example, the program may not run if one of the following actions occurs: A dependent DLL is upgraded to a new version. Self-containment and isolation An application that is developed by using an assembly can be self-contained and isolated from other applications that are running on the computer. Additionally, you should not call the FreeLibrary function when the process is terminating. This issue may more frequently occur when you use a third-party DLL that is regularly updated or fixed. Each module can be loaded into the main program at run time if that module is installed.
Bertadebra replied
448 weeks ago