Professional Documents
Culture Documents
dll" Alias "mciSendStringA" (B yVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLen gth As Long, ByVal hwndCallback As Long) As Long Private Declare Function mciExecute Lib "winmm.dll" (ByVal lpstrCommand As Strin g) As Long Private Sub Command1_Click() Dim sPath As String Dim lRet As Long sPath = Chr(34) & App.Path + "\puk.wav" & Chr(34) lRet = mciSendString("OPEN " & sPath, 0&, 0, 0) lRet = mciSendString("PLAY " & sPath & " FROM 0", 0&, 0, 0) End Sub