来自C ++的C#DllImport [英] C# DllImport from C++
问题描述
我目前正在将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屋!