如何使用CLI将用户定义的类对象从C ++传递到C# [英] How to Pass User Defined Class objects from C++ to C# using CLI
问题描述
我是C,C ++程序员,是C#的新手.我们需要将C#应用程序与C ++ dll集成在一起.我正在使用CLI来完成相同的任务.此外,还有许多C ++ API需要从C#应用程序中调用,每个API都包含许多用户定义的类对象作为参数.我的问题是如何使用CLI处理C ++类对象到C#的传递?其次,对于C#-C ++是否有类似的解决方案,例如"IKVM"(C#-Java)?
谢谢您的帮助,
Deepak
Hi,
I am a C,C++ programmer and new to C#. We a C# application which needs to be integrated with an C++ dll. I am using CLI to accomplish the same. There are a lot of C++ APIs that need to be called from C# application, additonally, each of these API contain a lot of user defined class objects as arguments. My question is how to handle passing of C++ class objects to C# using CLI? Secondly, Is there any similiar solution like "IKVM" (C#<->Java) for C#<->C++?
Thank You for Your Help,
Deepak
推荐答案
在这里尝试...
http://blogs.msdn.com/b/jonathanswift/archive/2006/10/02/780637.aspx [ ^ ]
Try here...
http://blogs.msdn.com/b/jonathanswift/archive/2006/10/02/780637.aspx[^]
这篇关于如何使用CLI将用户定义的类对象从C ++传递到C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!