put this in a module
and add this to a command button or whateverCode:Public Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
d is just there as a blank thing.. because I dont know what the last to arguments are forCode:Private Sub Command1_Click() Dim d As Long Call PlaySound("c:\windows\desktop\dennis3\Genflit0.wav", d, d) DoEvents End Sub
for some reason it kind of locks up.. it freezes the program you have to keep hitting the stop button(in the Vb IDE)
I am not sure why though.![]()





Reply With Quote