VB Code:
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long Sub PlayWave() fileName = "C:\Windows\Media\MicrosoftSound.Wav" sndPlaySound fileName,0 End Sub
Printable View
VB Code:
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long Sub PlayWave() fileName = "C:\Windows\Media\MicrosoftSound.Wav" sndPlaySound fileName,0 End Sub
It didnt work!
What didn't work? What was the problem?
The wav file didnt play - no errors - just didnt play! :(Quote:
Originally posted by manavo11
What didn't work? What was the problem?
Did you maybe hear a beep? It makes a beep sound if the file that you specified is incorrect... Could that be the case?
No beep :(
Ill listen again but im pretty sure there was now beep
are you sure the file was there?
i mean, it's probably not there on all systems
and maybe the speakers were on mute!