Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!fernwood!uupsi!sunic!dkuug!diku!freja.diku.dk!zippo From: zippo@freja.diku.dk (Ole Sas Thrane) Newsgroups: comp.windows.ms.programmer Subject: Testing for disk in drive A: Message-ID: <1991Jun29.095739.7253@odin.diku.dk> Date: 29 Jun 91 09:57:39 GMT Sender: zippo@freja.diku.dk Reply-To: zippo@freja.diku.dk (Ole Sas Thrane) Organization: Department of Computer Science, University of Copenhagen Lines: 20 Hi I'm writing an application for Windows (using BC++) which needs to check for the existence of a floppy disk in drive A:. I have tried using getdfree(1,&info) but if no disk is present, Windows displays a dialog box with a text like "System error - cannot acces drive a:" or something like that. Basically what I want is to be able to do my own error handling (in a more user friendly way :) ). Is this possible?? If not does anyone know how to get rid of the dialog Windows displays? Problem is that if I inserts a disk in response to the error message and selects "retry", the dialog stays on display while my program does its copying or whatever. Only when my program again sits idle does the dialog box go away - very annoying. I would appreciate any help on this very much - thanks. Ole *Now* it's dark...