Introduction - If you have any usage issues, please Google them yourself
From the resource document, loading voice, pictures, etc., and to play a sound, or show HINSTANCE h = AfxGetInstanceHandle () HRSRC hr = FindResource (h, IDW , WAVE ) HGLOBAL hg = LoadResource (h, hr) LPSTR lp = (LPSTR) LockResource (hg) sndPlaySound (lp, SND_MEMORY | SND_ASYNC) FreeResource (hg) return 0
Packet : 89346515playsound.zip filelist
PlaySound/
PlaySound/Debug/
PlaySound/MainFrm.cpp
PlaySound/MainFrm.h
PlaySound/PlaySound.aps
PlaySound/PlaySound.clw
PlaySound/PlaySound.cpp
PlaySound/PlaySound.dsp
PlaySound/PlaySound.dsw
PlaySound/PlaySound.h
PlaySound/PlaySound.opt
PlaySound/PlaySound.plg
PlaySound/PlaySound.rc
PlaySound/PlaySoundDoc.cpp
PlaySound/PlaySoundDoc.h
PlaySound/PlaySoundView.cpp
PlaySound/PlaySoundView.h
PlaySound/ReadMe.txt
PlaySound/res/
PlaySound/Resource.h
PlaySound/res/PlaySound.ico
PlaySound/res/PlaySound.rc2
PlaySound/res/PlaySoundDoc.ico
PlaySound/res/shutter.wav
PlaySound/res/Toolbar.bmp
PlaySound/StdAfx.cpp
PlaySound/StdAfx.h