Click to See Complete Forum and Search --> : PlaySound function
elyk
April 6th, 2004, 11:25 AM
Sorry for the nub question, but here it goes...
I've been trying out the PlaySound function in VC++.net, i've tried everything i can think of, i included winmm.lib and i'm using the SND_FILENAME flag.
...any help would be appreciated
CBasicNet
April 6th, 2004, 09:12 PM
When asking questions, please be very specific about what the problems you are facing so that others can help you promptly. Are you having compile problems or runtime problems?
btw, did you include < mmsystem.h >?
elyk
April 7th, 2004, 10:32 AM
Sorry, I'm having compile problems, it tells me that it doesn't udnerstand the SND_FILENAME flag and that it doesn't take two arguments.
ps
I did try mmsystem.h, it still didn't work.
CBasicNet
April 7th, 2004, 11:40 AM
PlaySound() takes 3 arguments. Show some code!
elyk
October 24th, 2004, 05:14 PM
I figured it out, I was entering my lib files in the wrong place.
Instead of going Properties | linker | input | additional dependencies,
I went Properties | linker | general | additional library dependencies
sorry :blush:
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.