Ho trovato l'API:
Public Declare Function PlaySound Lib "Coredll" Alias "PlaySoundW" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
Ma non riesco a farla funzionare. Cosa devo fare?
Dove sbaglio?
Il codice che uso è questo:
Dim Suono
Suono = PlaySound("\My Documents\eVB\MioFile.wma", 0, 1)
Cose devo mettere per dwFlags?
E cosa per hModule?
Ho provato ad eseguire il suono con Windows Media Player 7 e funziona...
Ciao e grazie,
Berello