Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chidambaram

macrumors member
Original poster
Mar 9, 2008
67
0
hi all,

I am working in a carbon c++ application using XCode in MAC machine.

I have two carbon c++ applications(for example,name of applications are get and set)

In first application(get.xcodeproject),
on button click event how can i call second application(set.xcodeproject)


Thanks in advance and very urgent plz....
 

lee1210

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
Fork and exec are the traditional way of doing this sort of thing.

You can call system() to run another program as well, but you will have to wait for the second command to finish.

Dependent on what you need vfork might be best since you intend to run a completely different program and probably don't need to retain the process space of the parent program.

man on any of these for more info.

-Lee
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.