CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1998
    Posts
    1

    Who knows MCI command?



    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



  2. #2
    Join Date
    Dec 1998
    Posts
    28

    Re: Who knows MCI command?



    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)



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured