在构建应用程序时,如何指示Visual Studio 2010 Express链接到WINMM.LIB? [英] How do I instruct Visual Studio 2010 Express to link to WINMM.LIB when building an application?

查看:78
本文介绍了在构建应用程序时,如何指示Visual Studio 2010 Express链接到WINMM.LIB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用C / C ++编写一个简单的多媒体应用程序,它很好但很难构建,因为它无法找到PlaySound。我跑过建议将winmm.lib添加到解决方案资源管理器属性列表中但我还没弄清楚如何做到这一点。

I am writing a simple multimedia application in C/C++ which complies fine but fails to build because it cant find PlaySound. I ran across advice to added winmm.lib to the Solution Explorer Property list but I haven't figured out how to do that.

推荐答案

右键单击你的项目,在解决方案资源管理器窗格中,在Visual Studio中。在弹出窗口的左侧,您将看到一个包含构建的所有不同部分的树。选择链接器 - >输入,并将您的库名称添加到右侧窗格中的附加依赖项框中。
Right click on your project, in the Solution Explorer pane, in Visual Studio. In the left hand side of the popup you will see a tree with all the different parts of the build. Select Linker -> Input, and add your library name to the "Additional Dependencies" box in the right hand pane.


这篇关于在构建应用程序时,如何指示Visual Studio 2010 Express链接到WINMM.LIB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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