Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
MCIsendstring
Old
  (#1)
Jeroen van Vliet
Guest
 
Posts: n/a
Default MCIsendstring - 06-04-2007, 08:57 AM

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


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: MCIsendstring
Old
  (#2)
Raoul Watson
Guest
 
Posts: n/a
Default 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.



   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top