Forums » .NET » .NET »

Difference Between Exe and Dll


Posted Date: 19 Dec 2005      Posted By:: Prabhukumar J     Member Level: Silver    Member Rank: 2063     Points: 2   Responses: 13



Hi

What is the difference between exe and dll.




Responses

#36935    Author: Pankaj Mishra      Member Level: Gold      Member Rank: 52     Date: 20/Dec/2005   Rating: 2 out of 52 out of 5     Points: 2

Hi,
Please see the related question or click on this link
http://www.dotnetspider.com/qa/Question5669.aspx

Pankaj

Regards,
Pankaj


 
#36936    Author: Rohini Prasad      Member Level: Silver      Member Rank: 0     Date: 20/Dec/2005   Rating: 2 out of 52 out of 5     Points: 2

exe file is a excutable file which runs in a seperate process which is managed by OS,where as a dll file is a dynamic link library which can be used in exe files and other dll files.In .net frame work both are assemblies.

 
#39119    Author: mrutyunjay panigrahi      Member Level: Bronze      Member Rank: 0     Date: 17/Jan/2006   Rating: 2 out of 52 out of 5     Points: 2

fullname of .exe is Extensible Execute File
fullname of .dll is Dynamic Link Liberary
.exe use by End User like-Client
.Dll can not use by End User.
We can Run the .exe
but we can not Run the .Dll





 
#75276    Author: Rahul Mehta (MCAD)      Member Level: Bronze      Member Rank: 0     Date: 08/Sep/2006   Rating: 2 out of 52 out of 5     Points: 2

An ActiveX Dll runs is an in process server running in the same memory space as the client process.

An ActiveX Exe is an out of process server which runs in it's own separate memory space.

Question 2 is the same as question 1.

Advantages of ActiveX Dll
-------------------------
1) An in-process component shares its client’s address space, so property and method calls don’t have to be marshaled. This results in much faster performance.

Disadvantages of ActiveX Dll
----------------------------
1) If an unhandled error occurs it will cause the client process to stop operating.

Advantages of ActiveX Exe
-------------------------
1) The component can run as a standalone desktop application, like Microsoft Excel or Microsoft Word, in addition to providing objects.
2) The component can process requests on an independent thread of execution, notifying the client of task completion using events or asynchronous call-backs. This frees the client to respond to the user.
3)If an error occurs the client processes can continue to operate.

Disadvantages of ActiveX Exe
----------------------------
1) Generally slower than an ActiveX dll alternative.

Rahul Mehta (MCAD)
Systime India


 
#95547    Author: Sandeep Kumar Yadav      Member Level: Bronze      Member Rank: 8622     Date: 23/Nov/2006   Rating: 2 out of 52 out of 5     Points: 2

An EXE can run independently, whereas DLL will run within an EXE. DLL is an in-process file and EXE is an out-process file

Sandeep Kumar Yadav


 
#95548    Author: Sandeep Kumar Yadav      Member Level: Bronze      Member Rank: 8622     Date: 23/Nov/2006   Rating: 2 out of 52 out of 5     Points: 2

An EXE can run independently, whereas DLL will run within an EXE. DLL is an in-process file and EXE is an out-process file

Sandeep Kumar Yadav


 
#137253    Author: Ashwini Rupert      Member Level: Gold      Member Rank: 128     Date: 17/Jul/2007   Rating: 2 out of 52 out of 5     Points: 2

.exe is an executable program
.dll is a dynamic link library located at run time using PATH env variable


exe runs on its own
dll file is linked or referenced to the exe at run time.


 
#139680    Author: Gokul Kumar D.      Member Level: Bronze      Member Rank: 0     Date: 26/Jul/2007   Rating: 2 out of 52 out of 5     Points: 2

.exe is generally a background server that doesn't have any user interface (UI).

.app is the visible application part with the UI (and can communicate with .exe programs using various IPC, Inter-Process Communications mechanisms).

.dll is a Dynamic Link Library, which contain callable, shared code (that can be called from .exe or .app files).


 
#153540    Author: Basit Tanveer      Member Level: Bronze      Member Rank: 0     Date: 25/Sep/2007   Rating: 2 out of 52 out of 5     Points: 2

Exe: The memory reference to the variables are absolute

DLL: The memory reference to the variables are relative


 
#266156    Author: kalit       Member Level: Silver      Member Rank: 0     Date: 19/Jul/2008   Rating: 2 out of 52 out of 5     Points: 6

DLL stands for dynamic-link library and is Microsoft’s implementation of a shared library. This means that many different programs can use this library to do their tasks making it easier on the programmers so that they do not have to keep reinventing the wheel each time they write software. In simple terms a .DLL file will contain logic that other programs will use.

EXE stands for executable and denotes that a program is executable. This just means that if you double click on the file a program will run, normally with some kind of interface for a user to interact with. The file formats for EXE and DLL actually the same.


 
#272025    Author: Ultimaterengan      Member Level: Gold      Member Rank: 10     Date: 29/Jul/2008   Rating: 2 out of 52 out of 5     Points: 1

A file named "something.exe" (usually) contains a complete program (something that can be executed).

A file named "something.dll" (usually) contains compiled versions of some functions that can be linked into a program. (dll stands for "dynamic linked library"). Some executable files contain all of the code needed to execute a program. Some executable files contain only code specific to that program and must be "linked" to one or more dll files to have access to some library functions when the program is executed. The "linking" is (sometimes? usually?) taken care of automatically when you compile your program. There may be compiler/linker options to specify whether you want "static" linking or "dynamic" linking



Thanks & Regards
G.Renganathan
Nothing is mine ,Everything is yours!!!



 
#285099    Author: RobinHood      Member Level: Gold      Member Rank: 44     Date: 22/Aug/2008   Rating: 2 out of 52 out of 5     Points: 5

EXE..
1.Its a executable file
2.There is only single main entry
3.When a system launches new exe, a new process is created
4.The entry thread is called in context of main thread of that process.

DLL..
1.Its a Dynamic Link Library
2.There are many entry points.
3.The system loads a DLL into the context of an existing thread

For More Details..
http://www.c-sharpcorner.com/Interviews/Answer/Answers.aspx?QuestionId=1431&MajorCategoryId=1&MinorCategoryId=1
http://wiki.answers.com/Q/What_is_the_difference_between_an_EXE_and_a_DLL

Regards
Sridhar R
Nothing is illegal, Until You Get Caught


 
#301960    Author: Ravi Kiran Nedunuri      Member Level: Gold      Member Rank: 627     Date: 30/Sep/2008   Rating: 2 out of 52 out of 5     Points: 5

The following are the main differences between dll and exe files

DLL

1. It can be reused.
2. It can be versioned.
3. It is not self executable
4. It doesn't have main function

.EXE
1. It cannot be reused
2. It cannot be versioned.
3. It is self executable.
4. It will have main
function.

another main difference is dll cannot be run individully but exe files can run individully
Regards
N.RaviKiran


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Is there any expert to solve this?
Previous : what is difference between String and string(data type) in c#?
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages

Subscribe to Subscribers
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Talk to Webmaster Tony John

Online Members

Pawan Awasthi
More...
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India