Using External Plug-Ins as a Data Source for Collections
Introduction : - A Dynamic Link Library takes the idea of an ordinary library one step further. The idea with a static library is for a set of functions to be collected together, so that a number of different programs could use them. This means that the programmers only have to write code to do a particular task once, and then, they can use the same function in lots of other programs that do similar things.
A Dynamic Link Library is similar to a program, but instead of being run by the user to do one thing, it has a lot of functions "exported", so that other programs can call them. There are several advantages of this. First, since there is only one copy of the DLL on any computer used by all the applications that need the library code, each application can be smaller, thus saving disk space. Also, if there is a bug in the DLL, a new DLL can be created and the bug will be fixed in all the programs that use the DLL just by replacing the old DLL file. DLLs can also be loaded dynamically by the program itself, allowing the program to install extra functions without being recompiled.
What is DLL?
A Dynamic Link Library (DLL) is a library that can be called from any other executable code, i.e.,
either from an application or from another DLL. It can be shared by several applications running under Windows. A DLL can contain any number of routines and variables.
Dynamic Link Library has the following advantages:
Introduction : - A Dynamic Link Library takes the idea of an ordinary library one step further. The idea with a static library is for a set of functions to be collected together, so that a number of different programs could use them. This means that the programmers only have to write code to do a particular task once, and then, they can use the same function in lots of other programs that do similar things.
A Dynamic Link Library is similar to a program, but instead of being run by the user to do one thing, it has a lot of functions "exported", so that other programs can call them. There are several advantages of this. First, since there is only one copy of the DLL on any computer used by all the applications that need the library code, each application can be smaller, thus saving disk space. Also, if there is a bug in the DLL, a new DLL can be created and the bug will be fixed in all the programs that use the DLL just by replacing the old DLL file. DLLs can also be loaded dynamically by the program itself, allowing the program to install extra functions without being recompiled.
What is DLL?
A Dynamic Link Library (DLL) is a library that can be called from any other executable code, i.e.,
either from an application or from another DLL. It can be shared by several applications running under Windows. A DLL can contain any number of routines and variables.
Dynamic Link Library has the following advantages:
- Saves memory and reduces swapping: Many processes can use a single DLL simultaneously, sharing a single copy of the DLL in memory. In contrast, Windows must load a copy of the library code into memory for each application that is built with a static link library.
- Saves disk space: Many applications can share a single copy of the DLL on disk. In contrast,each application built with a static link library has the library code linked into its executable image as a separate copy.
- Upgrades to the DLL are easier: When the functions in a DLL change, the applications that use them do not need to be recompiled or re-linked, as long as the function arguments and return values do not change. In contrast, statically linked object code requires that the application be relinked when the functions change
A potential disadvantage of using DLLs is that the application is not self-contained; it depends on
the existence of a separate DLL module.
Skip to main content