Dll v / s exe
1) DLL file is a dynamic link library that can be used in exe files and other DLL files.
An exe file is an executable file that runs in a separate process that is controlled by the OS.
2) DLLs are not executed directly. These are separate files containing functions that can be called by programs and other DLLs to perform calculations and functions.
EXE is a program that can be executed. Example: Windows program
3) Reusable
DLL: they can be reused for another application. So far, the encoder knows the names and parameters of functions and procedures in the DLL file.
EXE: For a specific purpose only.
4) The DLL will use the same process and the memory space of the calling application, and the EXE will create a separate process and memory space.
5) Uses
DLL: you want many applications to use it, but you do not want to tell them the source code. You cannot copy the code for the button in each program, so you decided to create a DL library (DLL).
EXE: When we work with project templates such as Windows Forms applications, console applications, WPF applications, and Windows services, they generate an exe assembly when compiled.
6) Similarities:
Both DLL and EXE are binary files that have a complex nested structure defined in the Portable Executable format, and they are not intended for editing by users.
skanda93 Sep 11 '15 at 12:05 2015-09-11 12:05
source share