
Play .wav in VB4-32bit without MCI control
Quote:
>How do i play a wav file in vb4 32 bit without using the MCI
>control ?
>Steve.
Try this:
In the general declarations:
Private Declare Function mciSendString Lib "winmm.dll" Alias _
"mciSendStringA" (ByVal lpstrCommand As String, ByVal _
lpstrReturnString As String, ByVal uReturnLength As Long, ByVal _
hwndCallback As Long) As Long
Then:
Private Sub Command1_Click()
Dim result As Long
result = mciSendString("Play C:\windows\ringout.wav", "", 0, 0)
end sub
Thats it.
Chris Thorson