All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
34
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to General and Gameplay Programming
linking libs in microsoft visual c++
General and Gameplay Programming
Programming
Started by
dk32321
September 23, 2005 11:25 AM
2
comments, last by
guyaton
18 years, 6 months ago
dk32321
142
Author
September 23, 2005 11:25 AM
I want to use the playsound() function in my program but how do you link the nessessary libarary to the linker in the compiler. i am using microsoft visual c++
Cancel
Save
Advertisement
Nitage
1,107
September 23, 2005 11:35 AM
If your using the VC IDE then your can do it through the build properties dialogue.
Cancel
Save
SiCrane
11,840
September 23, 2005 01:21 PM
Just add winmm.lib in the additional libraries section.
Cancel
Save
guyaton
130
September 23, 2005 01:43 PM
#pragma comment(lib, "winmm.lib")
~guyaton
Cancel
Save
~guyaton
This topic is closed to new replies.
Advertisement
Popular Topics
How do you manage yourself and your time as years pass on?
GDNet Lounge
Too many managers?
General and Gameplay Programming
Do your part to stop global warming and climate change
GDNet Lounge
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
Understanding the wavy-like shape in alpha-testing magnification for text rendering
Graphics and GPU Programming
Advertisement
Recommended Tutorials
Efficient Instancing in a Streaming Scenario
Graphics and GPU Programming
Algorithmic Forays Part 2
General and Gameplay Programming
Item Management Systems
General and Gameplay Programming
How to Analyze the Performance Cost of Your Unity Shaders
General and Gameplay Programming
How to Get Started Programming Your First Game - Part 1
General and Gameplay Programming
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top