Go Back   Computer Forums > General Computing > Cyber Safety and Computer Security
Click Here to Login
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 07-06-2011, 07:33 AM   #1
Solid State Member
Join Date: Jul 2011
Posts: 7
Default DLL - Dynamic Link Library

A dynamic link library (DLL) is a collection of small programs, which can be called upon when needed by the executable program (EXE) that is running. The DLL lets the executable communicate with a specific device such as a printer or may contain source code to do particular functions.
DLL files do not get loaded into RAM together with the main program, so they help to save RAM space. When and if a DLL file is called, then it is loaded in RAM.

For example,
You are editing a Microsoft Word document. If you decide to print the document, then & then only the printer DLL file is loaded and a call is made to print.
In short, DLL is an executable file that cannot run on its own, it can only run from inside an executable file.

This example will simplify so that you might understand it better:
If the program (exe) needs to get the free space of your hard drive. You will create a EXE containing following commands -
Declare GetFreeSpacex, Kernel32.dll (Drive_Letter, Buffers_If_Any, Value_Returned)
Now letís run a program and make the call.
The DLL is not loaded into RAM until the next line.
GetFreeSpacex "C",Buffers_If_Any, Drive_Letter
Now let's tell the user how much free space is on drive C
Use a MessageBox = "The free space on drive C: is ", Value_Returned, "bytes"
This call required 3 lines of code. Where as if you did not call the DLL file it may have taken you 30 or 40 lines of code.
Am_Threat is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 08:48 AM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0