-
October 16th, 2003, 08:55 AM
#1
How to add sound or music in MFC application
How to add sound or music in MFC application?
On some eventi want to play some bombing sound?
Say wav files
-
October 16th, 2003, 08:59 AM
#2
playsound api
in the msdn, look for playsound function
-
October 16th, 2003, 10:34 AM
#3
include in your project winmm.lib and
try {
!sndPlaySound("fileName")
}
catch (...)
{}
-
October 16th, 2003, 05:56 PM
#4
sndPlaySound() may be phased out. Use PlaySound instead.
If you already have the waveform in memory, then look
at the waveOutWrite() function (and the whole series
of related waveOut.. functions.
-
October 30th, 2003, 10:10 AM
#5
Any Code help
Hello can any body give a 2-3 line code help. How to use
Playsound function.
i am facing problem with HANDLE
I want to play a wave file added to recource
-
October 30th, 2003, 10:20 AM
#6
Add winmm.lib to the Linker->Input->Additional Dependencies like Vato said. Then,
#include "mmsystem.h"
::PlaySound("alarm.wav",0,SND_ASYNC);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|