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: References: 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