running another program
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]
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!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement