Path: chuka.playstation.co.uk!news From: James Russell Newsgroups: scee.yaroze.programming.libraries Subject: Re: Read from CD Date: Mon, 31 Aug 1998 14:45:35 +0100 Organization: Sony Computer Entertainment Europe Lines: 39 Message-ID: <35EAA8FF.9790E95B@scee.sony.co.uk> References: <35E55F0A.616FB8A7@cww.de> <35E57259.65523455@scee.sony.co.uk> <35E679C0.7E48D615@cww.de> <35E6ABD5.113F21AF@scee.sony.co.uk> <35E801D0.7FF1A2DE@cww.de> NNTP-Posting-Host: mailgate.scee.sony.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mozilla 4.5b1 [en] (Win95; I) X-Accept-Language: en brainchild@cww.de wrote: > > James Russell schrieb: We've compiled the "Check" program under both GNU and Codewarrior, both > without problems. > > > Other things to check might be: > > o The filename you specified didn't end in ";1" which is standard for a CD-ROM in > > ISO-9660 format. The ";1" is the version number of the file, which is usually ";1". > > o Can you CdSearchFile() for the file? > > o What exactly is the return code for CdReadFile? > > > > I donīt get any return code from CdReadFile because the program hang up at this function. > The CdSearchFile function brings the same error. Both CdReadFile and CdSearchFile are asynchronous functions, which mean that they execute in the background. Use CdReadSync to wait for the operation to complete. Because the manual states that CdReadFile returns the number of bytes read and yet the function is asynchronous, I'm a little confused as to how this could be the case. It's probably a documentation error, and the return code from CdReadFile might just be to state whether the request was initiated properly or not. > The following, very little program works fine when I compile it with GNU. It shows me > the correct length of the file. When I compile the same program with Codeworrier (V2.0.3) > I get the already known error message ( CD_cw:(CdlSetloc) Sync=NoIntr, Ready=NoIntr ). > Maybe my Codeworrier settings are incorrect ??? That were strange because I use the > default settings. As I said, one of our engineers got it to work on both Codewarrior and GNU, so I'll get him to post his settings. Cheers, James -- == James_Russell@scee.sony.co.uk +44 (171) 447-1626 == Developer Support Engineer - Sony Computer Entertainment Europe Clinton Economics: If 1+2=3 then 4+5=6.