home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!psinntp!psinntp!gdstech!gdstech!yarbroug
- From: yarbroug@gdstech.GRUMMAN.COM (Danny Yarbrough)
- Subject: Drive Switching with DlgDirList
- Message-ID: <YARBROUG.92Nov2122300@gdstech.GRUMMAN.COM>
- Sender: yarbroug@gdstech.grumman.com (Danny Yarbrough)
- Organization: Grumman Data Systems, Herndon VA
- Distribution: comp
- Date: Mon, 2 Nov 1992 17:23:00 GMT
- Lines: 25
-
- I'm developing an application that uses calls DlgDirList to fill
- listboxes with file and directory information. This seems to work
- fine for what I'm doing, but I have a small problem that I've seen
- occur in other applications that apparently do the same thing: if
- DlgDirList is called to display the contents of floppy disk, and then
- called again to display a different drive, DlgDirList accesses the
- current drive (the floppy) first. If there is no disk in the floppy
- drive, a system error is generated. DlgDirList will refuse to change
- to another drive until a floppy is inserted into the drive.
-
- It seems like there should be a way around this problem, because while
- I've seen numerous applications fail the same way mine does, I've
- probably seen an equal number that proceed right on and switch drives.
-
- Anyone have any suggestions? A post here will do, or email if you
- like.
-
- Any ideas much appreciated.
-
- Danny
- --
- +------------------------------------------------------------+
- | Danny Yarbrough (yarbroug@gdstech.grumman.com) |
- | Grumman Data Systems, Herndon, Virginia (703)-713-4136 |
- +------------------------------------------------------------+
-