Best Answer

An exe is an executible program. A DLL (Dynamic Link Library) is a file that can be loaded and executed by programs dynamically. Basically it's an external code repository for programs. Since usually several different programs reuse the same DLL instead of having that code in their own file, this dramatically reduces required storage space. A synonym for a DLL would be library.

DLL does not have main function but exe has main function

Here DLL is inprocess component, both component and consumer will share same memory and Exe is out process component, it will run in its own memory.
An exe is an executible program. A DLL (Dynamic Link Library) is a file that can be loaded and executed by programs dynamically. Basically it's an external code repository for programs. Since usually several different programs reuse the same DLL instead of having that code in their own file, this dramatically reduces required storage space. A synonym for a DLL would be library.
DLL fiel it is usually the file contains informations about programs. EXE is file which can be run and reading a information from DLL and other files to execute program.

User Avatar

Wiki User

โˆ™ 2011-08-18 09:05:40
This answer is:
User Avatar

Add your answer:

Earn +5 pts
Q: What is the difference between an EXE and a DLL?
Write your answer...

Related Questions

What is the Difference between dll and ocx?

dll and ocx both are in proc external component. dll never has user interface where as ocx would always have that's the major difference

What is the What is the difference between dll and ocx?

dll is smarter then oxc. oxc was used more then the dll, and its more confusing. dll is smarter then oxc. oxc was used more then the dll, and its more confusing.

What is difference between msi and exe file?

The exe is a penis and the msi is a penis wrapped if you will inside a vagina.

How do you open 16-bit .dll files?

You can't. DLL file ( Dynamic Link Library ) can only be opened by an executable ( EXE ) or compiler.

Why does VS2010 lose linked dll-libraries while compiling?

Do you mean that your compiled .exe complains about a missing .dll when run on another computer? Try linking to the C++ runtime instead of the library dll.

I have the code for the COM exe with me.How do you convert the COM exe file to dll file?

The first thing to do is to change the entry point from main() to Dllmain() and alter the code to suit a DLL. You then have to tell your compiler that you are compiling a DLL, not an EXE. How you do that depends on the compiler. For instance, in Visual Studio, you would need to change the project's properties under General | Configuration Type. Note that EXE files do not necessarily make good DLLs. You may have to alter the implementation somewhat since you are no longer running a program as such, you are essentially loading and unloading a function and/or class library that can be utilised by external programs to which the DLL is linked.

What is the difference in the usage of dll and exe?

Dll make it more simple for u, exe's are executables, or applications while dll are resource files that executables usually depend onAnswerA DLL so called Dynamic Link Library is a Library Class (In .NET its a Final result of a User Control or a Class designed) is a file that includes the Source code or the Callable functions that provide(s) service to the Application currently being executed. An EXE is a Stand-alone Application that could be executed on any platformAn EXE is an Independent Application while DLL is a Dependent on the Application's Call and Utilise of the DLL so In Question.An EXE has a dynamic access to any resource(s) of the Computer for ex. Printer, DMA, while DLL is / may alloted a fixed resource(s) to utiilse.EXE makes use of DLLs to execute the Application, while DLLs are called by the EXEs.As the name suggest, DLL is dynamically Loaded and Executed as and when necessary been called by the application, while EXE once called is loaded in the Memory while being Executed.DLLs has to be registered Using regsrv32 utility, while EXE is not suppose to be registered.DLLs are more efficient than EXE when the question is related to the Memory Utilization.Majorly DLLs comprises of the Functions or Procedures designed by any Programming Language which is mainly considered as "PROCESSING PART", whereas EXE comprises of Graphical User Interface (GUI), the Events to perform Actions, utilizing the DLLs (Calling and Retrieving results through DLLs).EXE may directly make use of OS while DLLs may or may not directly make use of OS.

What is the difference between the two installation programs Winn.exe and Winnt32.exe?

Winnt.exe is the 16-bit version and Winnt32.exe is the 32-bit version

How do you convert dll file into exe file?

When Your Windows Explorer Screen Is Up Go on top Tools>Folder Options>View> Then Uncheck "Hide Extinsions For Known File Types. Then Your File Will Be Named "Example.dll" all you have to do is highlight ".dll" and change it to ".exe"

Can you install The Sims 3 on Windows 2000?

The Sims 3 is not officially compatible with Windows 2000. It can be run if you download Xinput1_3.dll, Xinput1_2.dll and Xinput9_1_0.dll and put them in the directory with The Sims 3's .exe file.

What is the difference between a DIR file and EXE file in director?

trdfx5tdifyibh cv5yhtn097g

Which applications would be the prime target for attacks?

Any web application, buggy EXE files, and DLL libraries.

Is there a .bat to .exe converter that also makes a dll with the .exe too?

No. A bat file is sort of a script. It cannot be compiled nor changed into binary executable.

How can find the application that is using a dll file?

Most programs use .DLL files. The one you installed yourself is usually in the program's folder. Right click the dll and choose "Open file location" and look for a .exe file. If you want to know more about a specific dll you can open the dll in notepad, often you can read some of the letters and figuring out what program/game etc. It's for. For other .dll files you can search up on the name or location to find its origin. dll files should often be left alone.

What difference between 32 bit and 64 bit?

I want to download Aegisub on Medocow. But I see two files there aegisub-3.1.3_32.exe (with 32 bit) and aegisub-3.1.3_64.exe (with 64 bit) and I do now know what file I need. What difference between them?

What is the difference between a obj file and an exe file in C?

C programming language doesn't say anything about obj and exe files. On some platforms *.exe files are binary executables, and *.obj files are object modules.

Why dll files are faster than exe files?

Because dll's aka dynamic link library, can excute many files at once.

What does file extension dll mean?

These are usually system files .DLL stands for Dynamic Link Library. They are very similar to .exe file extensions and are normally on Microsoft operating systems. As with .exe's, .DLLs can contain code, data, and resources.

How do you remove Trojan horse downloadergeneric2cnr attached to cwindowsnexus exenexus272 exe and cwindowsnexus exe?

Go to Symantec's website and download the fix. You will need to boot into safe mode and run it so the trojan's DLL files don't load.

How do you take files out of an exe file?

An exe is a file which is run by the computer. It is not a data file. You can not take it apart. It does not contain separate files per se although it may liink to several separate files within the computer such as dll files.

Are DOWNLOAD files the same as dll files?

No Download files are files that you have downloaded, normally from the interent. They can be of any type (e.g. .doc, .mp3, .dll, .exe, etc.) .dll files are Dynamic Link Libraries that are used by programs installed on your computer. Nearly all are needed for your programs to run correctly. Technically, you can download a .dll file but they aren't the same thing :) Downloading a file is something you do TO a file (like read, modify, delete, etc.). A dll file is a type of file.

What is the difference between winntexe and winnt32exe?

winnt.exe = 16-bit clean install winnt32.exe = 32-bit upgrade

What is the difference between exe and jar files?

I believe a jar takes up less memory but requires java to run exe and jar (although a jar is similar to a zip file) can NOT be run on Mac software.

Where does Windows store device driver files?

c:\Windows\system32 or c:\Windows\system32\drivers and have an .exe , .dll or .sys A+ Guide to software page 305

Can a DLL be changed to an EXE?

In short, the answer is no. Unlike an EXE file which contains a single entry point (typically WinMain() or simply main() depending on the type of exe file), a DLL file is a library of functions intended to be linked into a running application. A DLL file can have a nearly infinite (it's based on file size and such) possible entry points. So, for example, if your DLL file is math library, you might have a function called add() or subtract(). These functions by themselves are meaningless without parameters being passed to them. Additionally, you wouldn't be able to use a programmatic method of deciding which of the two functions would be a meaningful entry point to the file. So the EXE you created wouldn't know how to start. You might however be thinking of a module similar to the DLL files which are executed by svchost.exe on Windows which loads a DLL into memory and runs it like a program. Service host defines a clear entry point into a DLL which is executed through there. I've never been a big fan of this way of doing things as task control is nearly impossible by doing this. You have to use fairly fancy task managers even to track down which DLL files are loaded by svchost.exe to figure out which instance of svchost.exe to kill. Still, while service host defines an entry point to the DLL, the DLL does not implement a main function recognizable by the EXE file loader in Windows. Therefore, you can't just simply change a svchost DLL file to an EXE file. A slightly longer answer and much more hackish solution would be to find a utility which would translate a DLL file into separate object components that can be linked to another program statically. This IS possible as it would really only require dumping the DLL specific headers and rewriting the functions as COFF objects as opposed to DLL objects. I highly recommend against doing this. If you don't have access to the source code of an application or library, it's a really bad idea to hack something together from the binary level. I'm assuming that since you're asking in the first place, you're not a system level developer with years of experience reverse engineering other peoples code. So, doing this would just be a bad idea. If you're trying to load a svchost.exe style DLL file in your own project, you'd be better off just implementing the svchost.exe API in your application and loading the DLL itself from there. Less things can go wrong that way and your code may still be debuggable.