delorie.com/archives/browse.cgi | search |
From: | eplmst AT lu DOT erisoft DOT se (Martin Stromberg) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: spawnv problem |
Date: | 7 Jul 2002 10:46:20 GMT |
Organization: | Ericsson Erisoft AB, Sweden |
Lines: | 30 |
Message-ID: | <ag965s$ecd$1@antares.lu.erisoft.se> |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1020707081211 DOT 21865C-100000 AT is> |
NNTP-Posting-Host: | spica.lu.erisoft.se |
X-Newsreader: | TIN [version 1.2 PL2] |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote: : On Sat, 6 Jul 2002, =?iso-8859-1?Q?Sebasti=E1n_Tobar?= wrote: : > void main() : > { : > char *args[] = { : > "mpxplay", : > 0 : > }; : This is wrong. Try this instead: : char *args[] = { : "mpxplay", : "mpxplay", : 0 : }; : You need to mention "mpxplay" twice: once for spawnv to find the program, : the other time as argv[0] to be passed to the program. But he did: spawnv(P_WAIT, "mpxplay.exe", args); Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |