Re: Best way to launch command-line program from C++ application
Re: Best way to launch command-line program from C++ application
- Subject: Re: Best way to launch command-line program from C++ application
- From: Dave Carrigan <email@hidden>
- Date: Thu, 19 Mar 2009 13:57:56 -0700
On Mar 19, 2009, at 1:48 PM, David Gagnon wrote:
What is the best/easiest way to launch a command-line program from
our C++ application? I know how to do it using “System.framework”
but it is a bit complicated. I need a function like “ShellExecute”
on PC... ;-)
If it's objective-c++ you could use NSTask.
There is also Launch Services, which I think comes closest to
ShellExecute, depending on how you're using ShellExecute.
For straight C++ with a true command line program you can likely use
fork/exec.
Give us a better idea of what exactly you need to do, and we can tell
you which of those options is better.
--
Dave Carrigan
email@hidden
Seattle, WA, USA
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden