
How can you play wave or mp3 files ?
How about this one?
Option Explicit
Private Declare Function sndPlaySound Lib "WINMM.DLL" Alias "sndPlaySoundA"
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Dim X As Integer
Private Sub Command1_Click()
'Play Sound Example
X = sndPlaySound("c:\windows\media\CallRing", 3)
End Sub
Private Sub Command2_Click()
'stop Play sound
X = sndPlaySound("", 3)
End Sub
hope it help,
John
Quote:
>Hello
>I forgot to ask something. How can you play wave or mp3 files in a visual
>basic program ?
>thanks Mike for answering my first question
>I have a problem if I want to reply on a message.
>best regards