🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3479

programming help

#3479
From: paul fry
Date: Wed, 13 Jan 1993 03:01
26 lines
1421 bytes
Can someone assist a novice C/C++ programmer !!!

I've written code (using Borland's C/C++) to detect a disk error
on a floppy drive - in particular, NO DISK PRESENT. I'm using:

    k=bisodisk(0,which-65,0,1,1,1,buffer);

where 'which' equals the 'A' or 'B' drive. This biosdisk call (according
to the C/C++ manual) tries to read a track and sector into 'buffer'.

Under DOS 3.xx and up, it (very nicely) returns an error code to the
calling program when no disk is present, thus allowing the application
to handle the error and avoid the standard Abort/Retry/Fail.

Under OS2, an error is returned EVERY time, even when a disk IS present.

I'd appreciate any insight/assistance someone might offer. Try not
to laugh at the technique I've used, above. IT DOES WORK! I'm not
writing an OS2 application. I'd really be ecstatic if you could relate
a routine that was both DOS and OS2 compatible.
         ----

Thanks for your time.
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Technical Details
Message-ID: <1993Jan12.4882.7752@dosgate>
Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!canrem!dosgate!dosgate![paul.fry@canrem.com]

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!canrem!dosgate!dosgate![paul.fry@canrem.com]
From: "paul fry" <paul.fry@canrem.com>
Subject: programming help
Message-ID: <1993Jan12.4882.7752@dosgate>
Reply-To: "paul fry" <paul.fry@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 12 Jan 93 22:01:36 EST
Lines: 26