What is the difference between an EXE and a DLL?

Posted by Saranya Boopathi under ASP.NET on 6/11/2013 | Points: 10 | Views : 20968 | Status : [Member] | Replies : 4
What is the difference between an EXE and a DLL?

Saranya Boopathi


Responses

Posted by: Satyapriyanayak on: 6/11/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
1.EXE is an extension used for executable files while DLL is the extension for a dynamic link library.
2.An EXE file can be run independently while a DLL is used by other applications.
3.A DLL file can be reused by other applications while an EXE cannot.
4.Exe is for single use whereas you can use Dll for multiple use
5.Dll is an In-Process Component whereas EXE is an OUt-Process Component.
6.You can create an objects of Dll but not of the EXE.

If this post helps you mark it as answer
Thanks

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bageshkumarbagi on: 6/11/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,

Refer below link.
http://www.differencebetween.net/technology/difference-between-exe-and-dll/
http://www.dotnetfunda.com/interview/exam1947-what-is-the-difference-between-an-exe-and-a-dll.aspx
http://www.dotnetspider.com/forum/34260-What-difference-between-dll-exe.aspx
http://www.c-sharpcorner.com/Interviews/answer/5645/what-is-the-difference-between-dll-and-exe


Thanks,
Bagesh Kumar Singh


Thanks,
Bagesh Kumar Singh
Mark as answer if you have been satisfied

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raj.Trivedi on: 6/11/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hello

EXE is an executable file which runs your program in windows platform

EXE is generated when you build an application and can be directly used for running an program.

DLL is dynamic link library as the name suggests it is library which hold code which is encapsulated and cannot be seen.If dynamically links to code in it.

To hide source code we make dlls for the code.

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 6/14/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
The main different between .exe and .ddl is as follows:-

.Exe
1.These are outbound file.
2.Only one .exe file exists per application.
3. .Exe cannot be shared with other applications.

.dll
1.These are inbund file .
2.Many .dll files may exists in one application.
3. .dll can be shared with other applications.

Hope this will help you to clear your concept.

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response