delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/06/18:58:20

From: GBradfor AT fhssmtp DOT redstone DOT army DOT mil (GBradfor)
Subject: Re: Re: Problem with GetKeyState()
6 Nov 1997 18:58:20 -0800 :
Message-ID: <00090337.3272.cygnus.gnu-win32@fhssmtp.redstone.army.mil>
To: gnu-win32 AT cygnus DOT com

>Subject: Re: Problem with GetKeyState()
>Author:  $Bill Luebkert <dbe AT wgn DOT 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 AT redstone DOT army DOT mil
                AND/OR
        p_n_brad AT traveller DOT 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 DOT 7B4A61AD AT wgn DOT net>
Date: Thu, 06 Nov 1997 02:32:03 -0800
From: $Bill Luebkert <dbe AT wgn DOT net>
Organization: DBE Collectibles
X-Mailer: Mozilla 4.03 [en] (Win95; U)
MIME-Version: 1.0
To: GBradfor <GBradfor AT fhssmtp DOT redstone DOT army DOT mil>
CC: gnu-win32 AT cygnus DOT com
Subject: Re: Problem with GetKeyState()
References: <0008EF83 DOT 3272 AT fhssmtp DOT redstone DOT army DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019