Game Development Community

Possible? script to call an exe file

by Scott Peal · in Torque Game Engine · 06/11/2004 (9:10 pm) · 5 replies

Is it possible with the engine to have the engine call an EXE file or a Web Service and get the returned data?

If yes, can anyone please refer me to a document location?

#1
06/12/2004 (8:50 am)
Do a resource search - I recall seeing such a resource a while back.
#2
07/06/2005 (2:20 pm)
I did that and found nothing, thus the reason for the post. :-)
#3
07/07/2005 (10:22 am)
Yes it is. In our project we have "informations" boards that are scatered around the level, when player get close we pull data from a site and show it to the player.

Calling an exe is just matter to add the correct call in C++, standard C library call is usualy sufficient.
#4
07/07/2005 (10:31 am)
@Brian Peal
There is a forumpost with the code you need to do this, on these boards. Search for it.

@Claude-Alain Fournier
It's not that easy. You will freeze TGE until the application is done, which is not what everyone wants :)
#5
07/08/2005 (12:30 am)
Stepfan,

You may or you may not depend on what you want to do. You can start another exe synchronously or asynchronously.

Example for windows app you could use the CreateProcess(...) call and check the status with WaitForSingleObject(...)

Or for Linux use fork(...) and wait(...) .

For Mac ? no idea.