20 May 2013

Difference between dll and exe in .net


.DLL
1.Its a Dynamic Link Library.
2.  It can be reused.
3. It can be versioned.
4. It is not self executable.
5. It doesn't have main function.
6.There are many entry points.
7.The system loads a DLL into the context of an existing thread.
8.DLL Can Occupy own memory space it self.
9.Many .dll files may exists in one application.
10.dll can be shared with other applications.

.EXE
1.Its a executable file.
2. It cannot be reused.
3.It cannot be versioned.
4.It is self executable.
5.It will have main.
6.There is only single main entry.
7.When a system launches new exe, a new process is created.
8.The entry thread is called in context of main thread of that process.
9.Only one .exe file exists per application.
10.Exe cannot be shared with other applications.

No comments:

Post a Comment