Showing posts with label Dll Vs Exe. Show all posts
Showing posts with label Dll Vs Exe. Show all posts

Friday 25 May 2012

Dll Vs Exe

A Dynamic-Link Library is a non executable program made of one or more files, which contains classes, procedures, and/or other resources that other programs can use.  Because it is not an executable, it doesn’t need an entry point or the main() procedure  and it usually ends with .dll

In .NET, an assembly may become a DLL or an EXE. Yet, there is a major underlying difference between the two.

An EXE is an executable file, that may run on its own. Its independant. Where as a DLL is a
Dynamic Link Library, that binds to an exe, or another DLL at runtime.

A DLL has an exposed
interface, through which members of the assembly may be accessed by those objects that require it.

A DLL
runs in tandem with the application space in memory, as the application references it. Whereas an EXE is independant, and runs as an independant process.