what is the difference between an ordinary exe file and the exe file generated from .net windows applications.
Asked
Active
Viewed 1,331 times
2 Answers
15
EXE generated by .NET has a normal PE header but then has instructions to load MSCorEE.DLL. See my answer here.
Basically according to CLR via C# .NET EXE's Managed Module contains (in this order):
- PE32 or PE32+ header
- CLR header
- Metadata
- IL Code
-
@Hans you are absolutely right. This is `Parts of a Managed Module`. Just corrected. – Aliostad Mar 30 '11 at 12:56
-
@Aliostad. Will i get a good understanding of the .net framework from the `CLR via C#` book, as i can read it. I thought that u can help me choose the right book for better fundamental concepts of the .net framework. – Saravanan Mar 30 '11 at 14:14
-
This book is an advanced one. It is a must-read book but after you learn the basic - if you already know the basics then it is excellent. – Aliostad Mar 30 '11 at 14:18
-
i know a bit.. but i will read it to gain more indepth knowledge. Thanks for your reply. Your reply is highly appreciated. – Saravanan Mar 30 '11 at 14:31
-
In that case it is an excellent book. I have read each edition multiple times, perhaps 10 times all in all! – Aliostad Mar 30 '11 at 15:19
-
Wondering if any of you could help me out over at server fault with a somewhat related question, but more of a permissions issue. See my comments in the question as well. http://serverfault.com/questions/429263/net-console-application-exe-cant-access-mapped-drive-that-points-to-unc-path – JustBeingHelpful Sep 19 '12 at 02:30
0
None, they are both executable files.
EDIT:
OK, I can see that wasn't very helpful. In one respect they are the same since they both trigger the same action from the operating system to start with, but as has been explained, there is deeper magic going on and that's more likely to be what the OP wanted to know.

Roger
- 15,793
- 4
- 51
- 73