Link to home
Start Free TrialLog in
Avatar of luthar
luthar

asked on

MCISendString (wav)

I'm wondering how to play a wav file, i've read that we need mciSendString API.

I wrote this code in a module and wondering if it's the good one or we have to use something else...

Declare Function sndPlaysound Lib "winmm.lib" (ByVal pszSound As String, _
ByVal hmod As Any, ByVal fdwsound As Any) As Long

Thank you in advance for your time
Lutar
ASKER CERTIFIED SOLUTION
Avatar of koom
koom

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of luthar
luthar

ASKER

Ok this is great but is there a way to close it :D let's say when i click on command2...

Thanks :)