delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/03/21/21:55:28

From: asmith AT www DOT aeinc DOT com ("A. Phillip Smith")
Subject: Re: Stupid stupid question :/
21 Mar 1997 21:55:28 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199703212103.NAA04064.cygnus.gnu-win32@www.aeinc.com>
Mime-Version: 1.0
Original-To: ismaelj AT hotmail DOT com (Ismael Jurado)
Original-Cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <199703211930.LAA03817@f4.hotmail.com> from "Ismael Jurado" at Mar 21, 97 11:30:25 am
X-Mailer: ELM [version 2.4 PL24]
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Actually, ignoring the spawn/CreateProcess problems, the
use of gnu-win32 to build even vanilla Win32 programs is
limited. I was unable to get windows subsystem programs to
execute by just adding a simple call to 'WritePrivateProfileSection'
in a callback function to update a .CFG file.

Removing that simple statement allows the GUI program to execute,
while adding it causes it to die silently. Note that the problem has
to do with code generation or environment, since it is invoked in
the callback, it should only cause runtime troubles when it is
actually executed. As things stand, the application window is
never generated when that 1 line is added.

Phil

> 
> >Linking applications with  --Wl,subsystem,windows is easy, but
> >with the fork-exec problems, how do you spawn a child process ?
> >The system command works, but it triggers the pop-up window, I assume
> >there would have to be a windows version of bash built, since those
> >commands are run from a shell ...
> 
> Well, actualy I´m not trying to solve those caveats.I use gnu-win32 to develop
> Windows applications, and by itself its very dificult. In my humble opinion, in
> the
> state-of-the-art of the projet, you can develop UNIX-like programs or
> WIN32 programs, but convining both...
> 
> Ismael Jurado <ismaelj AT hotmail DOT com>
> 
> ---------------------------------------------------------
> Get Your *Web-Based* Free Email at http://www.hotmail.com
> ---------------------------------------------------------
> 

-
For help on using this list, 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