SndPlaySound I want to play a sound in memory , but it is always said that I do not define this function, why ?

Category: VC/MFC -> Graphics Processing/Algorithm Author: shanxigaohao Date: 2009-11-08 20:26:17
 
shanxigaohao
2009-11-08 20:26:17
SndPlaySound I want to play a sound in memory , but it is always said that I do not define this function, why ? I have written "mmsystem.h package" Yeah, is not there anything else omissions , and see the exhibitions , thank you !
diyitian160tuofu
2009-11-08 20:43:50
add

# pragma & nbsp function in the source files used at the beginning ; comment (lib, " winmm ")
# include   " mmsystem.h "

should be all right
aaa81735
2009-11-08 20:58:18
also added Winmm.lib library , you can project   setting join. Or directly into the file   view of .

csqwain
2009-11-08 21:08:14
The library also has joined the Winmm.lib or not , what is possible ?
lglxbq
2009-11-08 21:24:08
The current situation is compiled through , but no matter how I change the file name it is playing with a default sound , I used sndNodefault do , there is no second argument is sound , and that is my file is always not found, this is why ? There is no successful demonstration of the code ? Thanks !