托管/非托管代码示例 [英] Example of Managed/Unmanaged Code

查看:119
本文介绍了托管/非托管代码示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我知道托管代码和非托管代码是什么。

针对CLR和非托管代码的托管代码那不是目标。



有人可以详细解释一下,我们如何实际创建非托管代码,因为每当我们编码,我们构建,运行。 ...但默认情况下它以CLR为目标。功能正常,那么我们如何创建非托管代码。 ?



i需要两个真实的例子....



请帮助...提前谢谢。

解决方案

你不用.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!


这篇关于托管/非托管代码示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆