🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9665

Re: How to determine that CD-drive is empty?

#9665
From: Simon Macneall
Date: Mon, 28 Jun 2004 23:16
35 lines
2585 bytes
On Mon, 28 Jun 2004 10:41:10 -0700, Bob Gonder  
<notbg@notmindspring.invalid> wrote:

>
> I don't remember if you ever explained why you care which state the
> door is in.

Just wanted to make the behaviour correct. Will go with just making it an  
eject button rather than an open/close if I can't get the open/close  
behaviour right.

>  Generally, you have a button  that the user presses to cycle the
> door, and rely on the user not to be too braindead to know the
> difference. (hmmm..that could be tasteless if you are doing this for
> handicap reasons)
> Ok, so app starts.
> Three possabilities
> 1) CD in. Read it and go.
> 2) No CD. Wait for user to push button.
> 3) Door Open. Wait for user to push button.
> 3.5) User closes door manualy (with CD) catch WM_DEVICECHANGE.
>
<snip>

Yeah, thought about doing it that way, but we would rather have less  
functionality (ie, only eject, not open/close) than have it behave  
wrongly, even if it is obvious to the user what is going on.
It's actually a DVD player, so the user will be changing discs a bit, but  
seeing as they have to actually move their hand to the drive to insert the  
disc, making them close the tray isn't a big stretch, it was just annoying  
me that I couldn't get it working, when WinDVD does, so there is obviously  
a way.

Thanks for your time
Simon
Technical Details
Message-ID: <opsabux2tw2nqexn@lightyear>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40da83a0$1@newsgroups.borland.com> <40dab6f4$1@newsgroups.borland.com> <40dabd59$1@newsgroups.borland.com> <opr94ibay12nqexn@lightyear> <opr94juib12nqexn@lightyear> <40dbc351$1@newsgroups.borland.com> <opr940rkqc2nqexn@lightyear> <74mnd0t561o702vk69e3mugo3jjndn3n85@4ax.com> <opr9907xlv2nqexn@lightyear> <6rk0e054fa2r2lkjqns62rabm4q93mqdf4@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d00920f15dfe8a59
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to determine that CD-drive is empty?
References: <40da83a0$1@newsgroups.borland.com> <40dab6f4$1@newsgroups.borland.com> <40dabd59$1@newsgroups.borland.com> <opr94ibay12nqexn@lightyear> <opr94juib12nqexn@lightyear> <40dbc351$1@newsgroups.borland.com> <opr940rkqc2nqexn@lightyear> <74mnd0t561o702vk69e3mugo3jjndn3n85@4ax.com> <opr9907xlv2nqexn@lightyear> <6rk0e054fa2r2lkjqns62rabm4q93mqdf4@4ax.com>
Message-ID: <opsabux2tw2nqexn@lightyear>
Date: Tue, 29 Jun 2004 07:16:40 +0800
From: "Simon Macneall" <macneall@iinet-dot-net-dot-au>
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
User-Agent: Opera M2/7.51 (Win32, build 3798)
NNTP-Posting-Host: 203.153.243.50
X-Trace: newsgroups.borland.com 1088464472 203.153.243.50 (28 Jun 2004 16:14:32 -0700)
Lines: 35
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail