如何在C#.NET中使用VC.NET编写的库 [英] How to use a library written by VC.NET in C#.NET

查看:64
本文介绍了如何在C#.NET中使用VC.NET编写的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人:

我有一个非常基本的问题.在.Net框架中,C ++.Net和C#.Net都被编译为CLR.这意味着无论您使用C#还是C ++编写都没有关系.

我的问题是,当您以纯C ++语法编写C ++库,然后在.Net框架中进行编译时,该如何在C#中使用该库?

或者只是编写为C ++.Net库,请问如何在C#中使用它?

任何人都可以给我有关这方面的基本文章吗?
谢谢

Dear all:

I have a very basic question. In .Net framework, C++.Net and C#.Net are all compiled to CLR. Which means it does not matter if you write in C# or C++.

My question is when you write a C++ library in plain C++ syntax and then compile it in .Net framework then how do I use the library in C#?

Or just written as a C++.Net library, how do I use it in C# please?

Can anyone give me a basic article about this please?
Thanks

推荐答案

添加对它的引用,就像其他任何普通的c#库一样.它将起作用.
Add a reference to it, like any other ordinary c# library. It will work.


这篇关于如何在C#.NET中使用VC.NET编写的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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