Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Open .exe?

Author
Message
Vesper103
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location: Beloit WI
Posted: 24th Jun 2008 09:15
Is there a way to in-code Open a .exe program? for instance you want a GDK game to run and to export a variable to another program who's sole purpose is to save it to a file. Like how some games load up a Console window?

Your signature has been erased by a mod - please reduce it to 600x120
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 24th Jun 2008 09:23
Jason? Lilith?
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 24th Jun 2008 09:30
i got this.
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 24th Jun 2008 09:30
i believe you need to do this:



probably a better way, though.
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 24th Jun 2008 09:32 Edited at: 24th Jun 2008 09:33
use the
int system(char* path)
function. it returns exit code for the program you ran. I think, but im not sure that you can give the program arguements.

edit: lol u beat me to it
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 24th Jun 2008 09:34
i gave an example, and you described the return value.

go team.
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 24th Jun 2008 09:35
and if you want to open a console menue:


right?
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 24th Jun 2008 09:49
I've never actually seen the system( ... ) command. What is it?
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 24th Jun 2008 10:04
basically throws cmd.exe a query.


you may have heard of the hated system("PAUSE");

Login to post a reply

Server time is: 2024-09-30 01:35:04
Your offset time is: 2024-09-30 01:35:04