|
-
Sep 6th, 2000, 07:02 PM
#1
How do i get a .wav sound to play, I've tried this:
In the general declarations:
Private Const SND_ASYNC = &H1
Private Const SND_NODEFAULT = &H1
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
and in the form_load:
strWavFile = App.Path & "\mywavfile.wav"
Call sndPlaySound(strWavFile, SND_ASYNC And SND_NODEFAULT)
end it doesn't seem to work. Can anyone help?
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
|