General information
Category:
Windows API functions
The program returns a 277 error "The MCI device you are using does not recognize the specified command" when it is run. This occurs when a basic open statment is used.
DECLARE Statements used in Form.Init
DECLARE INTEGER mciSendString ;
IN WinMM.DLL ;
STRING cMCIString,;
STRING @cRetString,;
INTEGER nRetLength,;
INTEGER hInstance
DECLARE INTEGER mciGetErrorString ;
IN WINMM.DLL ;
INTEGER nErrorno, ;
STRING @cBuffer, ;
INTEGER nBufSize
Open Code
cCmd = ('OPEN "' + cFileName + '" alias FoxMedia' + ;
' style child parent ' + ALLTRIM(STR(cur_window)) + ' WAIT')
THISFORM.doMCI(cCmd)
PLAY Code
THISFORM.doMCI("PLAY FoxMedia")
DoMCI Code
LPARAMETERS cMCIcmd
cRetString = space(80)
nRetValue = mciSendString(cMCIcmd,@cRetString,len(cRetString),0)
cErr = THIS.getMCIerror(nRetValue)
IF nRetValue > 0
RETURN CeRR
ENDIF
RETURN TRIM(STRTRAN(cRetString,chr(0),""))
Any Ideas?
Thanks
Peter Vavagiakis
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only