Skip to main content
gamedev.net
🔒 Locked

One program calling another

Started by Sagar_Indurkhya Jan 14, 2005 at 3:09 PM 1 replies 450+ views
Original Post
Sagar_Indurkhya
Sagar_Indurkhya
How can I have it so that one program executes another program? Like i have game.exe I have intro.exe, which logins in, etc, and then passes some command line args to game.exe?
Agony
Agony
It might be a little daunting looking at first, but the most flexible way (assuming this is a Win32 program) is CreateProcess().

I've never used them, but apparently there are also (assuming C/C++) the spawn and exec family of functions.

In VB, aside from being able to use CreateProcess(), you can also use the Shell method.
"We should have a great fewer disputes in the world if words were taken for what they are, the signs of our ideas nly, and not for things themselves." - John Locke o
v0dKA
v0dKA
Clickars
.:-v0d[KA]-:. <<>>

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.