Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 To: Paul Brown
  
 York
 
 Paul Brown
 Tags
Subject: RE: how to open DVD drive?
Thread ID: 49550 Message ID: 51494 # Views: 3 # Ratings: 0
Version: Visual FoxPro 7 Category: Projects and Design
Date: Monday, September 13, 2004 6:59:09 PM         
   


> Hi
>
> Use the mciGetErrorString function to convert an error code to text, e.g. (this will generate an error)
>
>
> DECLARE INTEGER mciSendString ;
> 	IN WinMM.DLL ;
> 	STRING cMCIString,;
> 	STRING @cRetString,;
> 	INTEGER nRetLength,;
> 	INTEGER hInstance
> 
> DECLARE INTEGER mciGetErrorString ;
> 	IN WinMM.DLL ;
> 	INTEGER fdwError, ;
> 	STRING @lpszErrorText, ;
> 	INTEGER cchErrorText   
> 	
> 	
> LOCAL lcRetString, lnError, lcText
> lcRetString = ""
> lcText  = SPACE(50)
> 
> lnError = mciSendString("Set CDAudio Door Close", @lcRetString, 0,0)
> 
> IF lnError <> 0
> 	mciGetErrorString(lnError, @lcText, LEN(lcText))
> 	
> 	WAIT WINDOW lcText
> ENDIF
> 

>
> See the MSDN page for the send string API for a list off all the commands it will accept:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_mcisendstring.asp
>
> Just follow the link to the strings page
>
> HTH
> Paul

Thank you, Paul, for the tip!

Now at least I have something to refer to, although the error message meaning is still unclear, neither is the cause. The error text reads:

The specified device is not open or is not recognized by MCI

I ran the search on the Internet for the error's text, and found the following article on MS's website:

PRB: MCI Error Message with Quicktime for Windows
This article was previously published under Q141366

SYMPTOMS
When attempting to play Quicktime for Windows .mov and .qt files, MCI reports the following error:

The specified device is not open or is not recognized by MCI

Or it returns a code of 0x107 (or 263 decimal).

NOTE: Quicktime for Windows is a third-party product manufactured by a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding its performance or reliability.

CAUSE
The error indicates files required for Quicktime playback are missing from your system including the MCI Quicktime driver. Windows 95 does not automatically include support for Quicktime for Windows.

RESOLUTION
Quicktime file playback requires the Quicktime for Windows files available from the Quicktime World Wide Web (WWW) home page on the Internet (http://quicktime.apple.com) or from Apple's FTP site on the Internet (ftp.apple.com). The Quicktime package includes a setup application to ease installation.

STATUS
Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.

(http://support.microsoft.com/?kbid=141366)

Now, what the absense of the Quicktime drivers has to do with the DVD-ROM device itself is still a mistery to me: ain't the OS (or at least BIOS) supposed to have it's own generic drivers for this kind of devices?

Can anybody - or care to - explain it to me? Or, better yet, advise some other way to open/close DVD drive programmatically?

AHWBGA!

Regards,

Ilya

ENTIRE THREAD

HOWTO open CD/DVD ROM drive programmatically? Posted by ILYA RABYY @ 8/20/2004 7:19:47 PM
RE: HOWTO open CD/DVD ROM drive programmatically? Posted by Eric den Doop @ 8/20/2004 7:41:09 PM
RE: HOWTO open CD/DVD ROM drive programmatically? Posted by ILYA RABYY @ 8/20/2004 8:24:26 PM
RE: open ROM drive programmatically - CD or DVD? Posted by ILYA RABYY @ 8/20/2004 8:02:18 PM
CD or DVD - nobody knows the answer (or cares)? Posted by ILYA RABYY @ 8/25/2004 5:43:25 PM
RE: CD or DVD - nobody knows the answer (or car... Posted by Ken Blum @ 8/25/2004 6:02:33 PM
RE: CD or DVD - nobody knows the answer (or car... Posted by ILYA RABYY @ 8/25/2004 6:54:32 PM
RE: CD or DVD - nobody knows the answer (or car... Posted by Ken Blum @ 8/25/2004 7:51:45 PM
RE: CD or DVD, and how to open DVD drive? Posted by ILYA RABYY @ 8/25/2004 9:51:26 PM
RE: CD or DVD, and how to open DVD drive? Posted by Ken Blum @ 8/26/2004 4:38:34 PM
RE: how to open DVD drive? Posted by ILYA RABYY @ 9/8/2004 11:27:49 PM
RE: how to open DVD drive? Posted by Paul Brown @ 9/13/2004 10:24:47 AM
RE: how to open DVD drive? Posted by ILYA RABYY @ 9/13/2004 6:59:09 PM
RE: how to open DVD drive? Posted by Paul Brown @ 9/14/2004 9:33:53 AM
RE: how to open DVD drive? Posted by ILYA RABYY @ 9/14/2004 4:47:11 PM
RE: how to open DVD drive? Posted by Paul Brown @ 9/15/2004 9:51:35 AM
RE: HOWTO open CD/DVD ROM drive programmatically? Posted by Jeep @ 9/11/2004 8:28:12 PM
RE: HOWTO open CD/DVD ROM drive programmatically? Posted by ILYA RABYY @ 9/13/2004 5:54:04 PM