X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Charles Sandmann Newsgroups: comp.os.msdos.djgpp Subject: Re: Help with Dos errors Date: Wed, 14 Sep 2005 06:19:30 CDT Organization: Rice University, Houston, TX Lines: 12 Message-ID: <43280742.sandmann@clio.rice.edu> References: <001001c5b897$66288070$ae7ba8c0 AT JPS DOT local> NNTP-Posting-Host: clio.rice.edu X-Trace: joe.rice.edu 1126697714 21643 128.42.105.3 (14 Sep 2005 11:35:14 GMT) X-Complaints-To: abuse AT rice DOT edu NNTP-Posting-Date: Wed, 14 Sep 2005 11:35:14 +0000 (UTC) X-NewsEditor: ED-1.5.9 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > I want to create a file on a disk (A:) and detect any DOS errors. Errors should always be flagged to the routine which was called. DJGPP doesn't use the abort,retry,fail stuff. > This works fine when I try the program in a Windows XP Dos window, but there > is no error detected (when for example there is no disk) when I try the > program on a DOS Version 6.20 computer with the CWSDPMI host. This may just be the different error code returned; the open or write statements should be checked for failure. You didn't say how it fails under DOS or provide the example code doing the open.