无法添加对“mydll.dll”的引用。 [英] A reference to 'mydll.dll' could not be added.
问题描述
大家好,
我想将dll文件添加到我的RFID读卡器项目中。此读卡器是第三方。他们为这个设备提供了dll文件。但是,我无法将dll文件添加到我的项目中。我怎么解决这个问题。
错误是
无法添加对'mydll.dll'的引用。
一步一步是
R-点击我的项目。选择添加引用,然后单击浏览点击,
选择路径并单击dll文件。最后,单击确定。发生以下文件
无法添加对'mydll.dll'的引用。
帮帮我PLZ ...
这个dll文件是由C ++创建的。但是,我尝试使用VB.net。我想知道它好不好。感谢所有帮助:0
Hi everyone,
I want to add dll file into my project for RFID card reader. This card reader is third party. They given dll file for this device. However, I can't add dll file into my project. How can I solve this problem.
Error is
A reference to 'mydll.dll' could not be added.
step by step is
R-Click upon my project. Choose Add reference and Click Browse tap,
Choose path and click dll file. Finally, click ok. The following file occurs
A reference to 'mydll.dll' could not be added.
Help me plz...
This dll files is created by C++. However, I try to use with VB.net. I want to know it OK or not. Thank for all help :0
推荐答案
对于.NET项目/解决方案,您只需添加.NET程序集或COM dll作为参考。
检查您的dll是否与CLR兼容。您尝试在IL解析器中打开它并检查是否一切正确
For a .NET project/solution you add only a .NET assembly or COM dll as reference.
Check if your dll is CLR compatible. You try to open this in IL dissembler and check if all is right
您好,请在此处查看。 http://social.msdn.microsoft.com/Forums/pl-PL/Vsexpressvcs/thread/c194f361-afcb-47ac-81e9-8be60cbc25a0 [ ^ ]
Hi, please check here.http://social.msdn.microsoft.com/Forums/pl-PL/Vsexpressvcs/thread/c194f361-afcb-47ac-81e9-8be60cbc25a0[^]
Imports System
Imports System.Runtime.InteropServices
Imports System.Text
Module yourModuleName
Public Const parameterString As String = "yourdll.dll"
<dllimport(parameterstring> _
Public Function HF_Port_Open() As Int32
End Function
End Module
一切都好。
It's OK all.
这篇关于无法添加对“mydll.dll”的引用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!