Skip to main content
GameDev.net gamedev.net
🔒 Locked

Calling another program from a C++ application

Started by Calin Jan 30, 2006 at 3:12 AM 5 replies 800+ views
Original Post
Calin
Calin
I have a game and I would like to launch a small aplication when the user exits the game. My question is how do I do it?. I tried using system("myprogram") but this halts the shutdown process of my game. Also a console window appears wich I would prefer not to have. Thanks for any reply
My project`s facebook page is “DreamLand Page”
Calin
Calin
Thanks!
I took a brief look at it and wow that's a nasty function. You have to pass quite some parameters. Guess there's no other choose though.

Edit: Wasn't that hard after all. Thanks again.

[Edited by - Calin on January 30, 2006 4:31:07 AM]
My project`s facebook page is “DreamLand Page”
pizdayob
pizdayob
ShellExecute will work too.
Calin
Calin
pizdayob: Using a cuss word as nickname and taking advantage that other users don't understand Russian proves immature attitude ( besides you are not the only Russian speaking user on the forums ). Translation

[Edited by - Calin on January 30, 2006 12:59:12 PM]
My project`s facebook page is “DreamLand Page”
pizdayob
pizdayob
it's been my nick for years...
besides it's not literal meaning... it's slang for someone who is not important, sort of like "dummy"... :|

I am sure in some other language your nick means something bad too...
Calin
Calin
Quote:

it's been my nick for years...

That doesn't make it less of a swear.

Quote:

besides it's not literal meaning... it's slang for someone who is not important, sort of like "dummy"... :|

I have been living for years in a city with 50% of inhabitants speaking Russian so don't tell me what that word means.

Quote:

I am sure in some other language your nick means something bad too...


Well in this case I would be blameless if that 'other language' is something else than romanian or english (the presumption I didn't knew would work for me). Russian is your first language so you have no excuse.
My project`s facebook page is “DreamLand Page”

Topic Locked

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

Sign in to reply to this topic.