The role of DLLs in Windows systems explained in detail

Source: Internet
Author: User

what is. DLL file.

A DLL is a library that contains code and data that can be used by multiple programs at the same time. For example, in the Windows operating system, the COMDLG32 DLL performs common functions related to dialog boxes. Therefore, each program can use the functionality contained in the DLL to implement the Open dialog box. This helps facilitate code reuse and efficient use of memory.

By using DLLs, programs can be modular and consist of relatively independent components. For example, an accounting program can be sold by module. Each module can be loaded into the main program at run time (if the appropriate module is installed). Because the modules are independent of each other, the program loads faster and the modules are loaded only when the corresponding function is requested.

In addition, updates can be more easily applied to individual modules without affecting other parts of the program. For example, you might have a payroll calculation program, and the tax rate changes every year. When these changes are quarantined in the DLL, you can apply the update without rebuilding or installing the entire program.

The following table describes some of the files that are implemented as DLLs in the Windows operating system:

* ActiveX control (. ocx) file
An example of an ActiveX control is a calendar control that allows you to select a date from a calendar.
* Control Panel (. cpl) file
An example of a. cpl file is an item that is located in Control Panel. Each item is a private DLL.
* Device driver (. drv) file
An example of a device driver is to control the printer driver that prints to the printer.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.