如何使用通过C#编译的C ++动态加载DLL [英] How to use the C++ dynamic load DLL which compiles with C#

查看:99
本文介绍了如何使用通过C#编译的C ++动态加载DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用通过C#.TKS编译的C ++动态加载DLL!

How to use the C++ dynamic load DLL which compiles with C#.TKS!

推荐答案

请给我更多的信息

据我说..

如果从C ++ DLL导出函数,则可以在C#中使用DLLImport属性.
其他
您可以将接口添加到C ++ DLL中,使接口中的DLL实现功能,以实现,并使用TLBIMP.exe在您的C#项目中导入其类型库....

你知道吗??
please clear your scenario more to me

according to me ..

If you export functions from C++ DLL then you can use DLLImport attribute in C#....

Else
you can add interface to C++ DLL making functions from DLL in interface to implement , and using TLBIMP.exe to import its type library in you C# project ....

Is that clear to you ??


这篇关于如何使用通过C#编译的C ++动态加载DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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