This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Re: Problem with GetKeyState()
- To: gnu-win32 at cygnus dot com
- Subject: Re: Re: Problem with GetKeyState()
- From: GBradfor <GBradfor at fhssmtp dot redstone dot army dot mil>
- Date: Thu, 6 Nov 1997 15:32:05 -0600
>Subject: Re: Problem with GetKeyState()
>Author: $Bill Luebkert <dbe@wgn.net> at Internet
>Date: 11/6/97 2:32 AM
>GBradfor wrote:
>>
>> What is wrong with the following
>>program?
>><snip>
>>
>> What am I misunderstanding here?
>I don't claim to be an expert or anywhere close to it, but
>methinks this routine is only valid when running as a
>Windows task (not in console mode). Course I don't know
>much more than that. :)
>Someone else can explain how to create a windows app.
Thanks for the quick response.
I guess I have a little confusion factor here. As I understand Win95 (which
could be entirely wrong) all applications have to be well-behaved system-
resource-wise, no matter what their mode. I figured this would apply to getting
input from the keyboard as well as anything else. I was under the impression
that directly intercepting interrupts (the traditional DOS way of getting the
keyboard scan codes) was strictly verboten under Win95.
So, given what you say is true, that GetKeyState() can only be used in the
context of a Windows task, and, second of all, that my application doesn't
really need the pretty Windows facade, and third, that it still has to run under
the Win95 OS, what is the best way to get at the key-up/key-down information?
/s/
Pat Bradford
Reply to:
gbradfor@redstone.army.mil
AND/OR
p_n_brad@traveller.com
Received: from michp758.redstone.army.mil (136.205.10.78) by
FHSSMTP.REDSTONE.ARMY.MIL with SMTP
(IMA Internet Exchange 2.11 Enterprise) id 000AC127; Thu, 6 Nov 97 04:44:51
-0600
Received: from mic14.redstone.army.mil by michp758.redstone.army.mil id aa13699;
6 Nov 97 4:39 CST
Received: from mail.wgn.net by mic14.redstone.army.mil id aa17106;
6 Nov 97 4:39 CST
Received: from wgn.net (du38-pcap-nca01.wgn.net [207.213.5.38]) by mail.wgn.net
(8.8.5-q-beta2/8.6.9) with ESMTP id CAA18523; Thu, 6 Nov 1997 02:32:26 -0800
Message-ID: <34619CA3.7B4A61AD@wgn.net>
Date: Thu, 06 Nov 1997 02:32:03 -0800
From: $Bill Luebkert <dbe@wgn.net>
Organization: DBE Collectibles
X-Mailer: Mozilla 4.03 [en] (Win95; U)
MIME-Version: 1.0
To: GBradfor <GBradfor@fhssmtp.redstone.army.mil>
CC: gnu-win32@cygnus.com
Subject: Re: Problem with GetKeyState()
References: <0008EF83.3272@fhssmtp.redstone.army.mil>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".