I want to know the exact difference between the dll and exe file.
See Question&Answers more detail:osI want to know the exact difference between the dll and exe file.
See Question&Answers more detail:osI don't know why everybody is answering this question in context of .NET. The question was a general one and didn't mention .NET anywhere.
Well, the major differences are:
EXE
DLL
The file format of DLL and exe is essentially the same. Windows recognizes the difference between DLL and EXE through PE Header in the file. For details of PE Header, You can have a look at this Article on MSDN