将 DLL (lame_enc.dll) 引用添加到我的项目 [英] Add the DLL (lame_enc.dll) reference to my project
问题描述
我需要将所有类型的音频格式转换为 mp3.我想我需要将 dll (lame_enc.dll) 的引用添加到我的 .net 应用程序中.
I need to convert all types of audio formats to the mp3. I think I need to add the refrence of the dll (lame_enc.dll) into my .net application.
当我尝试将 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"
是否有任何其他解决方案可以将所有类型的音频格式转换为 mp3,并且我还需要将所有类型的视频格式转换为 flv.
Is there any other solution that I can convert all types of audio formats to the mp3 and also I need to convert all types of video formats to the flv.
非常感谢您的考虑.
推荐答案
为什么要重新发明轮子?这里
Why reinvent the wheel? Here
http://www.codeproject.com/KB/audio-video/MP3Compressor.aspx
您找到了 lame_enc.dll 的 .NET 包装库.它是用C#编写的,但在VB.NET中使用应该没有问题.
you find a .NET wrapper library for lame_enc.dll. It is written in C#, but usage from VB.NET should be no problem.
顺便说一下,如果您想从 VB.NET 程序中使用本机 DLL(没有 COM,没有 .NET),您不必添加对该 DLL 的引用,您只需将该 DLL 复制到VB.NET 程序的工作目录并使用 PInvoke.阅读本教程(仅限 C#,抱歉)
By the way, if you want to use native DLLs (no COM, no .NET) from a VB.NET program, you don't have to add a reference to that DLL, you just have to copy that DLL into your working directory of your VB.NET program and use PInvoke. Read this tutorial (C# only, sorry)
http://msdn.microsoft.com/en-us/library/aa288468%28v=vs.71%29.aspx
了解更多.
这篇关于将 DLL (lame_enc.dll) 引用添加到我的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!