468,773 Members | 2,296 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,773 developers. It's quick & easy.

MCIsendstring

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
Jul 17 '05 #1
1 3726

"Jeroen van Vliet" <as****@asdasd.nl> wrote in message
news:br**********@reader10.wxs.nl...
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.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by FRANCO | last post: by
reply views Thread by han.phony | last post: by
3 posts views Thread by Dennis | last post: by
3 posts views Thread by Mark Denardo | last post: by
reply views Thread by kbodily | last post: by
1 post views Thread by =?Utf-8?B?Q8Opc2Fy?= | last post: by
1 post views Thread by _nabuchodonozor | last post: by
reply views Thread by zhoujie | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.