Advertisement

running another program

Started by April 23, 2002 10:46 PM
1 comment, last by flucknugget 22 years, 7 months ago
Are there any standard c++ functions that can execute a program? I''m writing a level editor, and in order to test the level it''s going to run the game and pass the map as a command line parameter. How would I do that?
- f l u c k y p o o
How about the Win32 function:

CreateProcess()

Look it up in the Win32 Help File.


If you need further help, ask.


Hope that helps.


If you must stick with C++ then use the Standard C system() function. It is in the stdlib.h.

------

Shop for the Lowest Price!
Then, Check a Reseller's Rating Before You Purchase!


[edited by - aNonamuss on April 23, 2002 12:09:54 AM]
------Shop for the Lowest Price!Then, Check a Reseller's Rating Before You Purchase!
Advertisement
#include <process.h>

system("mysuperleveleditor.exe");

{ Stating the obvious never helped any situation !! }

This topic is closed to new replies.

Advertisement