EXE
An exe always runs in its own address space i.e., It is a separate process.
The purpose of an EXE is to launch a separate application of its own.
DLL
A dll always needs a host exe to run. i.e., it can never run in its own address space.
The purpose of a DLL is to have a collection of methods/classes which can be re-used from some other application.
DLL is Microsoft's implementation of a shared library.
Pranay RanaRank #735 · 3.2K pointsPosted Mar 4, 2015, 1:39 AM EST
EXE file have entry point. i.e. point from which execution get started. For example consider windows from, console or wpf application in that you find
public static void main() - which is entry point.
Where as DLL does not have entry point. DLLs are loaded into an application (ie they can't run by themselves).
Ashish Kumar Panday37 pointsPosted Mar 4, 2015, 1:21 AM EST