无法向VS 2008添加一个DLL参考 [英] Unable to add a DLL Reference to VS 2008

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

问题描述

我想知道有人可以帮助我。



我试图在VB.Net(3.5)App中添加对LAME MP3编码器的引用。 / p>

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



当我尝试添加DLL引用到我的项目,我收到一个错误:
无法添加对C:\\Lame_Enc.dll的引用,请确保该文件可访问,并且它是一个有效的程序集或COM组件



我只会认为这是一个损坏的下载/类似但... ...




  • 存档通过WinRAR中的完整性测试

  • 我尝试重新下载JIC



接下来想的 - DLL是b0rked但是...




  • 我已经google了,看到这是vs2005中的一个常见问题。

  • 有很多讨论d没有一个似乎有一个有用的结论

  • 我尝试过SDK工具genasm(3.5)和TlbExp(2.0),都表示它不是一个有效的DLL如各种线程所示)。



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



以前,当我添加了non.Net DLL时,VS已经为我创建了一个INTEROP类。我理想地想要实现与这个DLL相似。



不幸的是,这是关于我的能力的程度 - 有人可以指出我正确的方向如何使用此DLL(或其他机制与LAME进行交互)?



非常感谢您的任何帮助

解决方案

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



http://www.codeproject.com/KB/audio-video/MP3Compressor.aspx


I wonder if someone can help me.

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

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

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...

  • The archive passed an integrity test in WinRAR
  • I tried re-downloading it JIC

Next thought - the DLL is b0rked but...

  • I've googled and seen that this is a common issue in vs2005.
  • There are quite a few discussions and none of them seem to have a useful conclusion
  • I've tried the SDK tools "genasm"(3.5) and "TlbExp"(2.0) and both say it's not a valid DLL (As suggested in various threads).

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 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.

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

解决方案

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.codeproject.com/KB/audio-video/MP3Compressor.aspx

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

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