向VB.NET项目添加DLL引用 [英] Adding DLL reference to VB.NET project

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

问题描述

只是为了开始,这个问题似乎非常类似于另一篇文章将DLL(lame_enc.dll)的引用添加到我的项目 ,但是我无法成功应用该答案。我对VB.NET很新,所以很可能我只是缺少一些明显的东西。

Just to start off, this question does seem very similar to another post Add the DLL (lame_enc.dll) reference to my project, but I haven't been able to successfully apply that answer. I am pretty new to VB.NET so it is very possible I'm simply missing something obvious.

我正在尝试将DLL链接到VB.NET 2010项目允许我的VB应用程序播放* .ogg文件。我在论坛上还提供了其他建议,并下载了 FMOD的 FMOD Ex Programmers API 。我现在试图引用这个功能。这些似乎是我需要以某种方式引用的文件。

I am trying to link a DLL to a VB.NET 2010 project to allow my VB app to play *.ogg files. I followed some other advice here on the forums and downloaded FMOD's FMOD Ex Programmers API. I am trying to now reference that functionality. These appear to be the files I need to somehow reference.

C:\程序文件(x86)\FMOD SoundSystem\FMOD程序员API Windows \\ \\ pic \fmodex64.dll

C:\程序文件(x86)\FMOD SoundSystem\FMOD程序员API Windows \api \libfmodex64_vc.lib 即可。

我还没有发现如何添加一个* .lib引用(或等效的),但是选择该DLL作为引用会出现以下错误。

I haven't discovered how to add a *.lib reference (or the equivalent), but selecting the DLL as a reference gives the following error.


对'C:\Program Files(x86)\FMOD SoundSystem\FMOD
的参考程序API Windows \api \ fmodex64.dll无法添加。请
确保该文件可访问,并且它是一个有效的程序集
或COM组件。

A reference to 'C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\fmodex64.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

我不知道我可能会失踪。有任何想法吗?谢谢!

I'm not sure what I could be missing. Any ideas? Thanks!

推荐答案

在解决方案资源管理器中,双击项目的我的项目节点。

In Solution Explorer, double-click the My Project node for the project.

在项目设计器中,单击引用选项卡。

In the Project Designer, click the References tab.

单击添加按钮打开添加引用对话框。

Click the Add button to open the Add Reference dialog box.

在添加引用对话框中,选择表示要引用的组件类型的选项卡。

In the Add Reference dialog box, select the tab indicating the type of component you want to reference.

选择要添加的组件参考,然后单击确定。

Select the components you want to reference, then click OK.

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

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