MciSendStr()

Post Reply
User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

MciSendStr()

Post by reinaldocrespo »

Hi.

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

Code: Select all

::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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Reinaldo,

Try it this way:

Code: Select all

local cResult := ::cResult
...
if ( nResult := MciSendStr( ::cCmnd, @cResult ) ) > 0 
   ::cResult = cResult
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply