在C#项目.net语言互操作性下编写C ++代码. [英] Write C++ code in under C# project .net language interoperatibility.

查看:92
本文介绍了在C#项目.net语言互操作性下编写C ++代码.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.net支持独立于语言的应用程序.
我正在使用C#应用程序,已经在Visual Studio 2008中创建了com dll.

我不想为com dll维护单独的项目,我很想在C#解决方案下拥有完整的代码.

是否可以在C#项目下编写VC ++代码?就语言互操作性而言,我认为这是可能的.我不知道该怎么办.

.net support language independent applications.
I am working on C# application , I have created com dll in Visual studio 2008.

I dont want to maintain seperate project for com dll, I wolud like to have full code under C# solution.

Is it possible to write VC++ code under C# project? as far as language interoperatibility is considered I think it is possible. I dont know how to do it.

Any body has done it before?

推荐答案

您实际上可以使用C#编写COM对象.我已经做过几次,一次是在网站上进行测试.

http://msdn.microsoft.com/en-us/library/c3fd4a20.aspx [ ^ ]
You can actually use C# to write your COM object. I have done this a couple of times, one was for a test on a website.

http://msdn.microsoft.com/en-us/library/c3fd4a20.aspx[^]


这篇关于在C#项目.net语言互操作性下编写C ++代码.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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