且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

托管/非托管代码示例

更新时间:2022-10-30 11:47:39

你不用.NET创建非托管代码 - 这意味着C#,VB等不会创建非托管代码。



您在Native应用程序中创建非托管代码,这基本上意味着C ++。您所能做的就是与来自C#或VB应用程序的非托管代码进行交互。



如果你想要一个非托管代码的例子,google就会充满它!

Hi,

I know what the managed code and unmanaged code is.
Managed Code that targets the CLR, and Unmanaged Code that doesn't target.

Can someone please explain a bit in detail, that how can we actually create unmanaged code, because whenever we code, we build, run .... but by default it targets CLR. The functionality goes normally, then how can we create an unmanaged code. ?

i need real examples of both....

please help...thanks in advance.

You don't create unmanaged code with .NET - which means C#, VB etc do not create unmanaged code.

You create unmanaged code in Native applications, which basically means C++. All you can do is interface with unmanaged code from a C# or VB application.

If you want an example of unmanaged code, google is full of it!