(off topic) execute external program

Hi,

Does anybody know a portable way to execute an external program from c or c++?

Mattijs

Sorry for this mail again. My postfix installation on this box is finally
working and i this mail was still in the queue.

Mattijs.On Wednesday 27 March 2002 22:04, you wrote:

Hi,

Does anybody know a portable way to execute an external program from c or
c++?

Mattijs


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Does anybody know a portable way to execute an external program from c
or
c++?

You want to launch a program called meep.

#include <system.h> // might be <process.h>

#ifdef WIN32
system(“c:\meep\meep.exe”);
#elif defined UNIX
system("/home/user/bin/meep");
#endif

Not really portable, but the only way I know._________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Hello,

Do you know a method to import a kdevelop project (using makefile.am for
example) into a visual C++ 6.0 project ?

Thank you

Ludovic-- 

Denoyer Ludovic
Eleve Doctorant
Equipe connexionniste du LIP6
Moniteur en algorithmique a Paris 7
Email : Ludovic.Denoyer at lip6.fr