🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

PlaySound Errors

Started by
1 comment, last by pheonix2468 18 years, 2 months ago
Hi its been a while since my last post but i cant stay away from here :D Anyway im using Visual Studio 2005 and when i compile my project i get an unresolved external link error, i beleive i need to include a lib file but i cant find the tool to do so in vc2005. can anyone help?? if you need more detail just ask.
Advertisement
how is this a PlaySound error? i have vc2003, so it might be the same. but here's how i link libs:
Create new Project.
On the top toolbar, click project->ProjectName properties
Then click on the Linker tab->Input
On the Additional Dependencies text box, put in whatever libraries you want to use. for PlaySound you'll need winmm.lib and you'll need to include <mmsystem.h>

for OpenGL, you'll want to link opengl32.lib glu32.lib (if you want GL Utilities), glaux.lib (if you want GL Auxiliary Functions), and glut32.lib (if you want GL Utilities Toolkit)

Hope that helps

--nathan
Thanks alot that worked!! YaY i promise next time ill be a little less dumb (honest).

This topic is closed to new replies.

Advertisement