我可以在同一个项目中使用c ++和c#吗? [英] can i use c++ and c# in a same project?

查看:79
本文介绍了我可以在同一个项目中使用c ++和c#吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好。

最近我开始使用Kinect SDK但只使用c ++,所以我想知道我是否可以在同一个项目中使用c ++和c#语言来制作一个使用kinect SDK的应用程序。

recently i started to use the Kinect SDK but only with c++, so i wonder if i could use c++ and c# languages in the same project to make an aplication using the kinect SDK.

感谢您的帮助

推荐答案

您无法使用它们位于同一个项目中,但您可以在一个解决方案中创建2个项目,其中一个是C#,另一个是C ++。

You can't use them in the same project, but you can make 2 projects in one solution, one of which is C#, and the other C++.

通过使用C ++ / CLI,您可以将要使用的Kinect SDK的各个部分包装到可从C#项目中使用的托管类中。

By using C++/CLI, you can wrap the parts of the Kinect SDK you want to use into managed classes which are usable from the C# project.





这篇关于我可以在同一个项目中使用c ++和c#吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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