Advertisement

playsound

Started by May 07, 2001 12:42 PM
1 comment, last by woodruff 23 years, 9 months ago
what''s the simplest way to play a soundeffect in mfc? i want to play a wave file if someone pushes a button in my dialog box! whats the right command and where can i find it???
#include "mmsystem.h"

include winmm.lib

the use command

PlaySound (who would have thought of that)

- goes like this

PlaySound( "sound.wav", 0 or could specify options for looping and stuff, SND_FILENAME);

Edited by - LeeIsMe on May 7, 2001 2:17:12 PM
Advertisement
thanx!

This topic is closed to new replies.

Advertisement