delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/14/06:47:10

Date: Wed, 14 Feb 2001 13:40:17 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Michael N. Kondaurov" <M DOT N DOT Kondaurov AT inp DOT nsk DOT su>
cc: DJGPP AT delorie DOT com
Subject: Re: RsxNTDJ console - kbhit & getch not work ?
In-Reply-To: <2D0B2727177@csd.inp.nsk.su>
Message-ID: <Pine.SUN.3.91.1010214133849.11688B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 14 Feb 2001, Michael N. Kondaurov wrote:

> I use DJGPP for creating Win95 applications to work in DOS box.
> Now I want to create Win95 console application because I need to use
> Win95 Com port driver ( CreateFile ... ets).
> 
> But when I call to "kbhit", "getch" - my program crash:
> 
>        Exception at ....
>        Application got signal SIGSEGV.

Did you make sure the program gets built as a console application?  I 
don't remember the details, but IIRC this requires special switches 
during compilation and/or linking, and perhaps also special libraries.

(Sorry for being so vague.)

- Raw text -


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