无法加载.dll文件 [英] Unable to Load .dll file

查看:514
本文介绍了无法加载.dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试在我的项目中使用libzplay.dll但是在添加对此dll文件的引用时收到错误消息:无法添加对libzplay.dll的引用请确保该文件是可访问的,并且它是一个有效的程序集或COM组件。

i我使用VB 2013终极版,带有Windows 8.1 64位。这是问题吗?





请告诉我为什么会出现这个错误以及如何修复它。

谢谢求助

Hi all,
I am trying to use libzplay.dll in my project but I got an error message when add Reference to this dll file : "A reference to libzplay.dll could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component".
i am use VB 2013 ultimate with windows 8.1 64 bit. it's problem ?


Please tell me why I got that error and how to fix it.
thank you for help

推荐答案

如果它只是您想要添加引用的另一个项目,请尝试将项目添加到解决方案中,然后在该项目中添加对该项目的引用解决方案。



如果不是这种情况,如果它是本机dll那么你可以使用 DllImport属性



否则,请按照这些可能有用的链接

使用regsvr32 [ ^ ]

使用TlbImp.exe [ ^ ]

使用DllImport [ ^ ]



希望,有帮助:)
If it is just another project to which you want to add reference, try adding the project to the solution and then add reference to that project in the solution.

If the above is not the case and if it is native dll then you can use DllImport Attribute.

Else, follow these links which may be useful
using regsvr32[^]
using TlbImp.exe[^]
Using DllImport[^]

Hope, it helps :)


这篇关于无法加载.dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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