VC ++项目到C#.net的转换 [英] conversion of VC++ Project to C#.net
本文介绍了VC ++项目到C#.net的转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在此先感谢
我想将我在VC ++中完成的项目转换为C#.net,至少用户界面必须尽可能地在c#中.我可以在c#类文件中调用cpp文件的功能.
致谢:)
Thanks in Advance
I want to convert my project done in VC++ to C#.net at least User interface must be in c# as easily as possible.Can I call The Functions of cpp file in c# class file.
Thanks & Regards :)
推荐答案
vishalsangave写道:
vishalsangave wrote:
我可以调用函数吗?在c#类文件中的cpp文件.
Can I call The Functions of cpp file in c# class file.
是的,但是您需要创建一个包含这些功能的C ++ DLL,然后使用 DLLImport [ ^ ]属性,以访问它们.
周围有许多文章对此主题进行了更详细的介绍.
Yes, but you need to create a C++ DLL containing these functions, and then use DLLImport[^] attributes in your C# code to access them.
There are a number of articles around that go into more detail on the subject.
这篇关于VC ++项目到C#.net的转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文