来自C ++的C#DllImport [英] C# DllImport from C++

查看:70
本文介绍了来自C ++的C#DllImport的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在将C ++ DLL导入C#,并且调用成功。但是,我想知道我是否需要三个导入才能使用相同的DLL来使用下面的所有3个函数? 

I am currently importing an C++ DLL into C# and the calls are working successfully. However, I am wondering if do I have to three imports to get use all 3 functions you below utilizing the same DLL? 

这些是否必要?如果是,导入是否为每个Dllimport创建了一个新的Dll实例?

Is these necessary? If so, is the import creating an a new instance of the Dll for the each Dllimport?

pianoboyCoder

pianoboyCoder

推荐答案

这复制了Visual C ++论坛中的一个主题:



https://social.msdn.microsoft.com/Forums/vstudio/en-US/f4f91e7d-a4d5-4491-a3f0-3eceaa6213e3/c-dllimports-from-c?forum=vcgeneral



- Wayne

This duplicates a thread in the Visual C++ forum:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/f4f91e7d-a4d5-4491-a3f0-3eceaa6213e3/c-dllimports-from-c?forum=vcgeneral

- Wayne


这篇关于来自C ++的C#DllImport的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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