Have your program idle
and periodically check in to see if the file has been written and is available... put a special marker at the end of the file.... hopefully the file won't be to long. If it is going to be long then create a 2nd file @ completion and put the marker in there. Don't forget to implement reasonable timelimits and retries in case the C++ program fails.
There are options for making the two programs communicate... using .NET, you can basically import all the C++ code and convert the main into a function and simply return a data structure with the stuff you want. But getting .NET working isn't fun :-(. It is however the most elegant solution.
I don't know all the other mechanism that exist for transferring data and objects between programs, but they exist.
__________________
"It better be funny"
Last edited by kel; 09-02-2003 at 12:12 PM..
|