Definition and Explanation of a .DLL file

Last reviewed: February 12, 1997
Article ID: Q87934
The information in this article applies to:
  • Microsoft Windows operating system versions 3.0, 3.1

SUMMARY

A DLL (dynamic link library) file is an executable file that allows applications to share code and other resources necessary to perform particular tasks. Microsoft Windows provides DLL files that contain functions and resources that allow Windows-based applications to operate in the Windows environment.

MORE INFORMATION

DLLs most often appear as files with a .DLL extension; however, they may also have an .EXE or other extension. For example, SHELL.DLL provides the OLE drag and drop routines the Windows and other programs use.

KERNEL.EXE, USER.EXE, and GDI.EXE are examples of DLLs with .EXE extensions. They provide code, data, or routines to applications running in the Windows operating system. For example, one of these files provides the "CreateWindow" function, which applications use when they want to create a new window on the screen.

In Windows, an installable driver is also a DLL. An application can open, enable, query, disable, and close the driver.

DLLs may be found in the WINDOWS directory, WINDOWS\SYSTEM directory, or in an application's directory.

If an application is started and one of its DLL files is missing, the error message "CANNOT FIND xxx.DLL FILE" will appear. If an application is started with an outdated DLL file, the error message "CALL TO UNDEFINED DYNALINK" will appear. In both situations, the proper DLL file must be obtained and placed in the proper directory for the application to run correctly.

REFERENCES

"Microsoft C for Windows," Microsoft Corporation, 1991 "Microsoft Windows Resource Kit," Microsoft Corporation, 1992, pages 449, 452 "Microsoft Software Developers Kit: Programmer's Reference, Volume 1: Overview," Microsoft Corporation, 1992, page 441


KBCategory: kbusage
KBSubcategory: win30 win31
Additional reference words: 3.10 3.00 3.00a


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 12, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.