Hi all, I want to play a WAV sound stored in a resource of my EXE. Having browsed all the contrib dirs, I've only found 'dGridview' an example that uses the NTKPlaySound()function to play WAV files from the disk. But, didn't find any hints on how to play sound from a resource. Can someone point me a tutorial or send a code snippet?
try the Playsound() api: PlaySound(IDS_ALERT, NULL, SND_RESOURCE+SND_ASYNC) // from res PlaySound("alert.wav", NULL, SND_FILENAME+SND_ASYNC+SND_LOOP) // from disk
here is the call: _DLL FUNCTION PlaySound( pszSound as lpcstr, hMod as handle, fdwSound as dword ) AS bool PASCAL:WINMM.PlaySoundA