Calling another application and waiting

Discussions about creating CAPI applications to run on Android devices
Post Reply
AriSilva
Posts: 594
Joined: July 22nd, 2016, 3:55 pm

Calling another application and waiting

Post by AriSilva »

I want to call an application with execsystem, and then wait for that app to finish to continue my program, since it has to read the file that the other appl wrote.
How should I do that?
I was thinking about staying inside a do while until something happens, but what?
How do I know that the other app has finished?
Best
Ari
Gregory Martin
Posts: 1791
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Calling another application and waiting

Post by Gregory Martin »

If you're working in Windows, then see this:

http://www.csprousers.org/help/CSPro/ex ... sktop.html

You can use the wait flag. "The application is opened and CSPro waits until it closes to resume program control."
Post Reply