如何在C#中使用此DLL(C ++)

编程入门 行业动态 更新时间:2024-10-28 02:30:30
本文介绍了如何在C#中使用此DLL(C ++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要使用这个DLL: https:// github / audiorouterdev / audio-router audio-routes.dll 但是我不知道在c#中我应该使用什么代码来使用DllImport,请帮助我! 我尝试了什么: 我尝试使用引用它的库(不是dllimport)但它不起作用,我需要if或者如果我使用DLLimport

I need use this DLL: github/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 ++)

本文发布于:2023-06-10 18:29:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/616402.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   DLL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!