delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/23/12:13:55

Date: Tue, 23 Dec 1997 19:12:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: amit <halfxoat AT bigfoot DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: using 'spawn' to run djgpp exe in windows ..
In-Reply-To: <349EC470.3F5C@bigfoot.com>
Message-ID: <Pine.SUN.3.91.971223190951.15119B-100000@is>
MIME-Version: 1.0

On Mon, 22 Dec 1997, amit wrote:

> it seems that even though I use 'spawnve(..)' and passing
> my own environment array, the djgpp application sees the
> original Windows environment.

I'd guess that Borland and/or Win32 executables have their own way of 
passing environment which bypasses the environment of the DOS box where 
the DJGPP child program is run.  Try calling the DJGPP program via 
`system' instead of `spawnve'.  If that doesn't help, try `system' with 
explicit COMMAND.COM, like this:

	system ("command.com /c myprogram.exe");

- Raw text -


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