English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

.dll (dynamic link library ) is one type of extension name i often see in my computer.I want to understand the cocept of these files

2007-06-30 17:23:16 · 6 answers · asked by nilesh p 1 in Computers & Internet Other - Computers

6 answers

They are Frameworks or Library's developers use so they don't need to re-write the same code over and over again.

2007-06-30 17:26:39 · answer #1 · answered by Todd A 3 · 0 0

A .dll is a "dynamically linked library." It's a library of functions that other programs can call without being compiled together. So, I can can make a program that relies on some dll to be present and some function to be present even if it's not present to me when I create the program though you usually would want to try it out before deplying an app. Multiple programs can call functions within a dll. A dll is created just like any other program is created using a development application such as visual studio or java. Windows bases alot of it's functionality off of dll's.

2007-06-30 17:29:45 · answer #2 · answered by Matthew 4 · 0 0

Dynamic-link library (also written without the hyphen), or DLL, is Microsoft's implementation of the shared library concept in the Microsoft Windows and OS/2 operating systems. These libraries usually have the file extension DLL, OCX (for libraries containing ActiveX controls), or DRV (for legacy system drivers).

The file formats for DLLs are the same as for Windows EXE files — that is, Portable Executable (PE) for 32-bit Windows, and New Executable (NE) for 16-bit Windows. As with EXEs, DLLs can contain code, data, and resources, in any combination.

In the broader sense of the term, any data file with the same file format can be called a resource DLL. Examples of such DLLs include icon libraries, sometimes having the extension ICL, and font files, having the extensions FON and FOT.

In Win32, the DLL files are organized into sections. Each section has its own set of attributes, such as being writable or read-only, executable (for code) or non-executable (for data), and so on.

The code in a DLL is usually shared among all the processes that use the DLL; that is, they occupy a single place in physical memory, and do not take up space in the page file. If the physical memory occupied by a code section is to be reclaimed, its contents are discarded, and later reloaded directly from the DLL file as necessary.

In contrast to code sections, the data sections of a DLL are usually private; that is, each process using the DLL has its own copy of all the DLL's data. Optionally, data sections can be made shared, allowing inter-process communication via this shared memory area. However, because user restrictions do not apply to the use of shared DLL memory, this creates a security hole; namely, one process can corrupt the shared data, which will likely cause all other sharing processes to behave undesirably. For example, a process running under a guest account can in this way corrupt another process running under a privileged account. This is an important reason to avoid the use of shared sections in DLLs.

If a DLL is compressed by certain executable packers (e.g. UPX), all of its code sections are marked as read-and-write, and will be unshared. Read-and-write code sections, much like private data sections, are private to each process. Thus DLL's with shared data sections should not be compressed if they are intended to be used simultaneously by multiple programs, since each program instance would have to carry its own copy of the DLL, resulting in increased memory consumption.

2007-06-30 17:32:55 · answer #3 · answered by batman123 2 · 0 0

A dynamic-link library (DLL) file is an executable file that allows programs 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 programs to operate in the Windows environment.

2007-06-30 17:30:55 · answer #4 · answered by DeRoS 1 · 0 0

A .dll file is typically a driver for software and hardware. It is pretty much part of the instructions/map file to tell the software or hardware what to do.

2007-06-30 17:26:52 · answer #5 · answered by RJ W 2 · 0 1

Have a look at these sites if you want to learn more.
http://delphi.about.com/od/windowsshellapi/a/dll_basics.htm
http://www.flipcode.com/articles/article_creatingdlls.shtml

2007-06-30 19:35:08 · answer #6 · answered by c g 2 · 0 0

fedest.com, questions and answers