i cannot start it..
i no where is its starting
create sound from system in vb6
Page 1 of 11 Replies - 186 Views - Last Post: 03 February 2013 - 06:12 AM
Replies To: create sound from system in vb6
#2
Re: create sound from system in vb6
Posted 03 February 2013 - 06:12 AM
What?
Quote
You can use the "sndPlaySound" Win32API to play a WAV file, i.e.
'----------------------------------------------------------
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Private Const SND_ASYNC = &H1 ' play asynchronously
Private Sub Form_Load()
Call sndPlaySound("C:\Windows\Media\Explode.wav", SND_ASYNC)
End Sub
'----------------------------------------------------------
'----------------------------------------------------------
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Private Const SND_ASYNC = &H1 ' play asynchronously
Private Sub Form_Load()
Call sndPlaySound("C:\Windows\Media\Explode.wav", SND_ASYNC)
End Sub
'----------------------------------------------------------
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|