Searching...
9:43 PM

VB6 Play Sound

code:

Public Declare Function sndPlaySound Lib "winmm" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

Public Sub PlaySound(strFileName As String)
    sndPlaySound strFileName, 1
End Sub

0 comments:

Post a Comment

 
Back to top!