我有c ++代码,想要输入它并在c#应用程序中检索结果 [英] i have code in c++ and want to input in it and retrieve the results in a c# application

查看:65
本文介绍了我有c ++代码,想要输入它并在c#应用程序中检索结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助..>>我在应用程序的c ++中编写了所有代码,但是这些表单是在visual studio 2010中创建的......我如何能够帮助我输入c ++并在c#app中检索结果..

解决方案

对表单使用C ++ / CLI,然后就不会有问题。或者将您的C ++代码放入库中,您可以通过COM从C#代码访问,或者 P / Invoke [ ^ ]。

kindly help.. >> i have all the coding in c++ of an application , but the forms are created in visual studio 2010 ... how can i be helped such that i input in c++ and retrieve result in c# app ..

解决方案

Use C++/CLI for the forms and then you will not have a problem. Alternatively make your C++ code into a library which you can access from the C# code via COM, or P/Invoke[^].


这篇关于我有c ++代码,想要输入它并在c#应用程序中检索结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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