Path: chuka.playstation.co.uk!news From: brainchild@cww.de Newsgroups: scee.yaroze.programming.libraries Subject: Re: Read from CD Date: Sat, 29 Aug 1998 15:27:45 +0200 Organization: Prolixity Lines: 37 Message-ID: <35E801D0.7FF1A2DE@cww.de> References: <35E55F0A.616FB8A7@cww.de> <35E57259.65523455@scee.sony.co.uk> <35E679C0.7E48D615@cww.de> <35E6ABD5.113F21AF@scee.sony.co.uk> Reply-To: brainchild@cww.de NNTP-Posting-Host: stud-183.HRZ.Uni-Dortmund.DE Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mozilla 4.05 [de]C-NECCK (Win95; I) 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. 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. #include u_long sectbuf[1024]; u_long Len; main() { Len = CdReadFile("\\DATA\\TEXTURE\\FANCY\\CHECK01.TIM", sectbuf, 0); printf("Bytes:%d\n",Len); } I hope you can reconstruct my error... cYa Jo