| Re: MCIsendstring -
06-04-2007, 08:57 AM
"Jeroen van Vliet" <EMAIL REMOVED> wrote in message
news:brko47$4pb$EMAIL REMOVED...
> I made a program where wav files will be played from the database, with
the
> full path.LIKE
>
> i = mciSendstring(open d:\sound.wav type waveaudio",0&,0,0)
> i = mciSendstring(play d:\sound.wav ",0&,0,0)
>
> This program will be written on a cdrom, in this case ithe cdrom volume is
> D: , but on other
> systems its not. How do i let the program choose the right volume?
>
> Jeroen
>
>
Jeroen..
If the program is on the same volume, you can use something like:
Dim WAVpath as string
WAVpath = App.Path & "\sounds\sound.wav"
Just include WAVPath in the mcisendstring cmd.
Beste wensen van New York. |