Asked in
Computer Terminology
Computer Programming
The Difference Between

What is the difference between an EXE and a DLL?

Answer

User Avatar
Wiki User
August 18, 2011 9:05AM

An exe is an executible program. A DLL (Dynamic Link Library) is a file that can be loaded and executed by programs dynamically. Basically it's an external code repository for programs. Since usually several different programs reuse the same DLL instead of having that code in their own file, this dramatically reduces required storage space. A synonym for a DLL would be library.

DLL does not have main function but exe has main function

Here DLL is inprocess component, both component and consumer will share same memory and Exe is out process component, it will run in its own memory.
An exe is an executible program. A DLL (Dynamic Link Library) is a file that can be loaded and executed by programs dynamically. Basically it's an external code repository for programs. Since usually several different programs reuse the same DLL instead of having that code in their own file, this dramatically reduces required storage space. A synonym for a DLL would be library.
DLL fiel it is usually the file contains informations about programs. EXE is file which can be run and reading a information from DLL and other files to execute program.