如何在C#中使用此DLL(C ++) [英] How use this DLL (C++) in C#

查看:116
本文介绍了如何在C#中使用此DLL(C ++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用这个DLL:



https:// github .com / audiorouterdev / audio-router



audio-routes.dll



但是我不知道在c#中我应该使用什么代码来使用DllImport,请帮助我!



我尝试了什么:



我尝试使用引用它的库(不是dllimport)但它不起作用,我需要if或者如果我使用DLLimport

I need use this DLL:

https://github.com/audiorouterdev/audio-router

audio-routes.dll

but I do not know what codes I should use to use the DllImport in c#, please help me!

What I have tried:

I try to use the library referring to it (not dllimport) but it does not work, I need if or if I use DLLimport

推荐答案

正式记录了这是如何完成的。请查看我的文章和示例代码



提示:通常使用外部包装类来处理数据转换是有意义的。
It is officially documented how this is done. Take a look at my article and sample code.

Tip: often it makes sense to use an "outer" wrapper class to handle data conversion.


这篇关于如何在C#中使用此DLL(C ++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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