MciSendStr()

MciSendStr()

Postby reinaldocrespo » Sat Jul 21, 2007 12:10 am

Hi.

I'm trying to implement voice recording and playback. Using something like this:

Code: Select all  Expand view  RUN
::cCmnd := "Record RecWavFile"

if ( nResult := MciSendStr( ::cCmnd, @::cResult ) ) > 0
   MsgStop( "MCI Error " + ::cResult, cValToChar( nResult ) )
Endif


I get error 263 on nResult every single time for all MCI commands.

Can someone help?

Is there some fw + xharbour implementation or class available for voice recording and playback?

Thank you,


Reinaldo.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Postby Antonio Linares » Sat Aug 11, 2007 9:59 am

Reinaldo,

Try it this way:
Code: Select all  Expand view  RUN
local cResult := ::cResult
...
if ( nResult := MciSendStr( ::cCmnd, @cResult ) ) > 0
   ::cResult = cResult
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 37 guests