Difference.
3. .EXE stands for executable, and .DLL stands for Dynamic Link Library
If you are aware of any other differences please post them using the form below.
exe has main(..), dll dont
We can make a .dll file (Including Main()),
But can't make an exe file (without Main())
how can we make .dll file without any supporting library. is it possible?
exe has an entry point(main).dll does not have since it is library.
3. .DLL's can be reused, where as .EXE's cannot be reused.
-- We can reuse EXE files if they are built using .Net Framework. But the above statement says we can not reuse.
Check yourself. Create a console application write a public class and public method.
Create another application (any type), add reference to the EXE file directly (Not the project reference in same solution).
You can access all public types and members from the referenced EXE file.
how to create referenced EXE file
will this class have main();
mail me rahulbadola26@gmail.com
when we ad a reference as a dll file for project.We got an error as this not a correct format or like.What is the reason.How that kind of dll been used.
DLL - Dynamic Link Library
An ActiveX Dll runs is an in process server running in the same memory space as the client process.
EXE – Executable File
An ActiveX Exe is an out of process server which runs in its own separate memory space.
DLLs are in-proc while EXE is out-proc.
Means EXE always runs as a seperate process while Dll runs in the scope of parent process which is consuming the dll.
dll is an executable file, it is linked via runtime for many dependencies
showing error file not found or not a pe file while executing ildasm command