Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

help with mciSendString

1 réponse
Avatar
dhowe
I keep getting a type mismatch error in the second line of code. The
first line of code returns 0 in the msgbox and the second line of code
returns 261.

Private Sub Form_Load()
'i = mciSendString("open C:\Greetings.wav type waveaudio alias
voice1", 0&, 0, 0)

i = mciSendString("open" & App.Path & "\" & "Greetings.wav type
waveaudio alias voice1", 0&, 0, 0)

msgbox i

End Sub

1 réponse

Avatar
Christophe
Bonjour !

you're on a french newsgroup,
so ask it in french or ask it on microsoft.public.vb.general.discussion

Christophe V.

"Don" a écrit dans le message de news:

I keep getting a type mismatch error in the second line of code. The
first line of code returns 0 in the msgbox and the second line of code
returns 261.

Private Sub Form_Load()
'i = mciSendString("open C:Greetings.wav type waveaudio alias
voice1", 0&, 0, 0)

i = mciSendString("open" & App.Path & "" & "Greetings.wav type
waveaudio alias voice1", 0&, 0, 0)

msgbox i

End Sub