Running external applications in SDL

Hello again!

I have a question. Is it possible to execute an application
from SDL? And if so - how? I need to print something from
an SDL application, and I’m thinking of writing a small
separate app. to do that and just execute it from SDL…

Thanks in advance for any help.

Cheers–
val it = ("?NOQ of the Sun", “Johnny Andersen”,
[“anoq at vip.cybercity.dk”, “anoq at berlin-consortium.org”,
“anoq at diku.dk”], “http://users.cybercity.dk/~ccc25861/”)
: cyberspacename * meatspacename * email list * homepage URL

Hello again!

I have a question. Is it possible to execute an application
from SDL? And if so - how? I need to print something from
an SDL application, and I’m thinking of writing a small
separate app. to do that and just execute it from SDL…

Sure. It’s system dependent, so you’ll have to write separate versions
of your program for every platform you support.

Windows: CreateProcess() (I think)
Linux: fork()/exec()
BeOS: You can’t use fork() and exec() with SDL, so I’m not sure what they
provide.
MacOS: ??

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

Windows: CreateProcess() (I think)
Linux: fork()/exec()
BeOS: You can’t use fork() and exec() with SDL, so I’m not sure what they
provide.

MacOS: LaunchApplication()

Matt

/* Matt Slot, Bitwise Operator * One box, two box, yellow box, blue box. *

Sam Lantinga wrote:

Windows: CreateProcess() (I think)
Linux: fork()/exec()
BeOS: You can’t use fork() and exec() with SDL, so I’m not sure what they
provide.

Matt Slot wrote:

MacOS: LaunchApplication()

Thanks! I only need to support windows - at least with the
printing, so this will do…

Cheers–
val it = ("?NOQ of the Sun", “Johnny Andersen”,
[“anoq at vip.cybercity.dk”, “anoq at berlin-consortium.org”,
“anoq at diku.dk”], “http://users.cybercity.dk/~ccc25861/”)
: cyberspacename * meatspacename * email list * homepage URL