Click to See Complete Forum and Search --> : Who knows MCI command?


Jacques Lenglet
October 21st, 1998, 08:22 AM
Hello

I use MCI commands in API mciSendString(....)

I have no problems with "open", "play", "record", etc...

Example :

i = mciSendString("open new type waveaudio alias myrec,"",0,0)

i = mciSendString("set myrec bitespersample 16","",0,0)

i = mciSendString("record myrec","",0,0)

but when I use the "status" command I get no informations. For example

dim rep as string

i = mciSendString("status myrec bitespersample",rep,0,0)

My instruction is correct or there is an error?

Thanks in advance

Justin Decker
October 25th, 1998, 05:26 PM
To use API that fills a buffer, your buffer must first be filled. So change your code to this:

dim rep as string * 255

i = mciSendString("status myrec bitespersample",rep,0,0)