| delorie.com/archives/browse.cgi | search |
| From: | "Edmund Horner" <ejrh AT paradise DOT net DOT nz> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <39c4f6b2$1 AT news DOT gemsoft DOT net> |
| Subject: | Re: How can I spawn a DJGPP program under Windows ? |
| Lines: | 28 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
| Organization: | Paradise Net |
| Message-ID: | <969253019.630418@shelley.paradise.net.nz> |
| Cache-Post-Path: | shelley.paradise.net.nz!unknown AT 203-96-148-64 DOT tnt0 DOT paradise DOT net DOT nz |
| X-Cache: | nntpcache 2.4.0b5 (see http://www.nntpcache.org/) |
| Date: | Mon, 18 Sep 2000 16:59:27 +1200 |
| NNTP-Posting-Host: | 203.96.152.26 |
| X-Complaints-To: | newsadmin AT xtra DOT co DOT nz |
| X-Trace: | news.xtra.co.nz 969253020 203.96.152.26 (Mon, 18 Sep 2000 16:57:00 NZST) |
| NNTP-Posting-Date: | Mon, 18 Sep 2000 16:57:00 NZST |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
You could spawn \WINDOWS\START.EXE, with the name of the other dos program
as the argument, eg:
int spawn_program (char *prog)
{
char line[MAX_PATH];
sprintf (line, "c:/windows/start.exe %s", prog);
return system(line);
}
<cat AT animal DOT u-net DOT com> wrote in message news:39c4f6b2$1 AT news DOT gemsoft DOT net...
>
>
> Please advise me.
> I have a program compiled under DJGPP where I can launch MSIE
> applications from the DOS console, and a new browser appears and
> goes to the desired URL. The DOS console application remains running
> in parallel. The same happens with notepad and Winzip etc. However
> I cannot create another copy of the DOS console using the same
> application. Are there any fancy interrupts which could be used to
> do something like that.
>
> Tony Goddard
> http://www.d4maths.co.uk/mirage
>
>
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |