Simple Code To Play a Wave File
Simple Code To Play a Wave File
API Declarations
'BY S.Raghunathan
'Declarations
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Dim fileName as String
Rate Simple Code To Play a Wave File
(1(1 Vote))
Sub PlayWave()
fileName = "C:\Windows\Media\MicrosoftSound.Wav"
sndPlaySound fileName,0
End Sub()
Simple Code To Play a Wave File Comments
No comments yet — be the first to post one!
Post a Comment