无法到DLL引用添加到VS 2008 [英] Unable to add a DLL Reference to VS 2008

查看:302
本文介绍了无法到DLL引用添加到VS 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道是否有人能帮助我。

I wonder if someone can help me.

我想添加一个参考LAME MP3 EN codeR在我的VB.Net(3.5)应用程序。

I'm trying to add a reference to the LAME MP3 encoder in my VB.Net (3.5) App.

我使用(lame_enc.dll v3.98.2)的DLL从这里下载://rarewares.org/mp3-lame-bundle.php

The DLL I'm using (lame_enc.dll v3.98.2) was downloaded from here: http://rarewares.org/mp3-lame-bundle.php

当我试图将DLL引用添加到我的项目,我得到一个错误: 一提到C:\\ Lame_Enc.dll不能添加请确保该文件是可访问的,它是一个有效的程序集或COM组件

When I try to add the DLL reference to my project, I get an error: "A reference to C:\\Lame_Enc.dll could not be added. Please make sure this file is accessible and that it is a valid assembly or COM component"

我只是认为这是一个腐败的下载/相似但...

I would just assume this was a corrupt download/similar but...

  • 归档通过了完整性测试在WinRAR
  • 在我试图重新下载它JIC

下一个想法 - DLL被b0rked但...

Next thought - the DLL is b0rked but...

  • 我GOOGLE了,看到这是VS2005的一个常见问题。
  • 有相当多的讨论,没有人似乎有一个有益的结论
  • 我已经试过了SDK工具genasm(3.5)和TlbExp(2.0),并都表示,这不是一个有效的DLL(如建议在不同的线程)。

所以...我已经得出结论,它不是一个COM DLL或(显然)一个净之一。这可能是完整的,但我不能直接与VS引用它。

So... I've come to the conclusion it's not a COM DLL or (obviously) a .Net one. It is probably intact but I can't reference it directly with VS.

previously当我加入non-.Net的DLL,VS为我创造了一个INTEROP类。我最想要实现这个DLL的相似。

Previously when I've added non-.Net DLLs, VS has created an INTEROP Class for me. I'd ideally like to achieve similar with this DLL.

不幸的是,这是对我的能力的程度 - 是否有人可以点我朝着正确的方向如何使用这个DLL(或其他机制与LAME互动)

Unfortunately, this is about the extent of my ability - Can someone please point me in the right direction for how to use this DLL (or another mechanism to interact with LAME)?

在事先非常感谢您的帮助

Many thanks in advance for any help

推荐答案

这个项目(在C#albiet但同样的原则也必须适用于VB.NET)是指使用Lame_enc.dll。你可以尝试下载示例项目,看看他们在做什么与你相比:

This project (in C# albiet but the same principle must apply for VB.NET) refers to using the Lame_enc.dll. You could try downloading the sample project and see what they are doing compared with you :

HTTP://www.$c$ cproject.com/KB/audio-video/MP3Com$p$pssor.aspx

这篇关于无法到DLL引用添加到VS 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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