Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exécution d'un programme "fils"

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
En visual C++ j'ai un programme "pére" sur une disquette mais je veux exécuter un programme "fils" qui se trouve dans un répertoire de mon disque dur puis revenir au programme "pére".
J'utilise la commande :if (c=='0') err=spawl(P_WAIT,"C:\service\t(c)1x10\prog\x_trans.exe",NULL);
Mais sur cette ligne j'ai plusieurs erreurs.
Quelle est la bibliotheque a affilier?
Existe t il une autre ligne de commande???
 
Translation:
I have a parent process on a floppy but I want to execute a child process which is on a directory of my hard drive, then return to the parent process.
I am using:
Code:
if (c=='0') err=spawl(P_WAIT,"C:\service\t(c)1x10\prog\x_trans.exe",NULL);
but several errors appear for that line.
Which library should I be linking?
Is there another command line? (sic)


Maybe it's a typo but I think he's referring to spawnl. Plus, the \ have to be escaped as \\.

Je crois que vous recherchez la fonction spawnl, celle ci est dans LIBC.LIB (ou LIBCMT.LIB multithread). De plus vous avez oublie de doubler vos barres obliques \\
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top