Could someone please explain to me what an un/managed DLL is? And what is un/managed code?
Asked
Active
Viewed 1.8k times
4 Answers
10
Unmanged code will be compiled to machine language to run directly on the hardware.
Managed code will be compiled to a virtual machine called CLR (Common Language Runtime), and compiled to machine language on start by the JIT (Just in time compiler). THE CLR can be compared to the java virtual machine, it is the same concept.

elsni
- 1,953
- 2
- 17
- 35
8
Short answer: Code compiled without .NET framework (plain old DLL).

Pablo Santa Cruz
- 176,835
- 32
- 241
- 292
8
You will get a fair idea on managed and unmanaged code in following article -

Reuel Ribeiro
- 1,419
- 14
- 23

Sachin Shanbhag
- 54,530
- 11
- 89
- 103
-
2Link is no longer valid. – Ciaran Gallagher Jul 10 '14 at 21:26
-
1@CiaranGallagher I fixed it – Reuel Ribeiro Jun 24 '16 at 15:10
-
Very good article! – Reuel Ribeiro Jan 05 '19 at 16:33
5
When you code with .net you get some memory management, garbage collection etc, so it is called managed code. Older versions are unmanaged (for the memory is managed by the programmer)
And to keep things easy, calling from managed code to unmanaged code can be a trye pain.

SoulWanderer
- 315
- 3
- 11