delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-Id: | <199910121319.OAA07178@cav.logica.co.uk> |
Date: | Sun, 10 Oct 1999 13:18:46 GMT |
To: | cygwin AT sourceware DOT cygnus DOT com |
From: | fieldhouse AT logica DOT com (Dirk Fieldhouse) |
Subject: | Re: windows consoles |
X-Mailer: | Mozilla/3.0 (Windows 95;US) Opera 3.60 [en] |
On Sun, 10 Oct 1999 07:22:20 +0300 (FLE Daylight Time), Tor Lillqvist <tml at iki dot fi> wrote: >Earnie Boyd writes: > > Isn't there a CreateConsole() function? > >There is AllocConsole(). After calling that you can (at least in >mingw32 programs) do freopen ("CONOUT$", "w", stdout). A problem is that you can't tell whether your Windows program needs you to do AllocConsole at all. Supposedly (ie according to the Win32 API spec) AllocConsole fails if you already have one. However under W95 this doesn't happen. You always get another console window, even if you started the program from a command prompt. Alternatively, your console output all goes into the bitbucket in the sky. There seems to be no way to access the command window from which you started an executable built for the Windows subsystem. -- Dirk Fieldhouse Logica UK Limited fieldhouse AT logica DOT com 75 Hampstead Road c=gb;a=attmail;p=logica; London NW1 2PL o=LOGICA;ou1=UK;s=fieldhouse UK +44 (20) 7637 9111 -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |