如何安装usblibrary.dll并使其在C#中可用 [英] How do I install usblibrary.dll and make it available in C#
本文介绍了如何安装usblibrary.dll并使其在C#中可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以给我一个简单的说明如何安装这个dll的说明,以便在c#中可用。
我是c#的新手并已下载.rar文件,但不知道如何安装。
谢谢。
Joe < br $> b $ b
我尝试了什么:
试图用regsvr32来安装从c盘驱动器但没有运气
Can someone please give me a simple list of instructions how to install this dll so that is is available in c#.
I am new to c# and has downloaded the .rar file but don't know how to install it.
Thanks.
Joe
What I have tried:
tried to use regsvr32 to install the dll from the c drive but no luck
推荐答案
可能你没有。
并非所有DLL文件都是.NET程序集 - 和您只能添加对程序集的引用。其他DLL文件是Native或Unmanaged代码,必须通过P / Invoke使用。
见这里:调用DLL函数 [ ^ ]或查找包装它或提供托管等效函数的.NET程序集。
Probably, you don't.
Not all DLL files are .NET assemblies - and you can only add a reference to an Assembly. Other DLL files are Native or Unmanaged code, and have to be used via P/Invoke.
See here: Calling a DLL Function[^] or find a .NET assembly that either wraps it or provides managed equivalent functions.
这篇关于如何安装usblibrary.dll并使其在C#中可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文