I found the post below from NoteMe (2002) regarding playing sounds.
It works with one catch. It only plays the sound when I exit out of the execution. ??? It doesn't play during execution?
Any ideas?
Thanks in advance.
-----------------------------------------------------
Enter this in a code module:
Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Public Const SND_ASYNC = &H1 ' play asynchronously
and call it fram the form like this:
sndPlaySound soundName, SND_ASYNC
where soundName is a string holding the directory and filename of your wav file...
---------------------------------------------


Reply With Quote
