Thursday, February 6, 2014

Difference between dll and exe

One of the most common interview questions asked by a window developer is

Difference between exe and dll

1.EXE is an extension used for executable files while DLL is the extension for a dynamic link library. 2.An EXE file can be run independently while a DLL is used by other applications. 3.An EXE file defines an entry point while a DLL does not. 4.A DLL file can be reused by other applications while an EXE cannot. 5.A DLL would share the same process and memory space of the calling application while an EXE creates its separate process and memory space. (The DLL is an inprocess component but exe is outprocess component. When system launches an exe, a new process is created , for DLL a new process is not created).

No comments :

Post a Comment