Reputation: 2164
Please help, how can I organize the process-process data exchange (in Windows, if that matters)?
I have process1.exe
which calls process2.exe
with a few command line arguments. I want to track "progress" of process2
from process1
(say, some int
value). It (that int
value) can be accessed from process1
permanently or each X ms - doesn't matter.
Will be useful any solution: WinApi or Qt.
Thank you everybody! All answers are very useful! :) Many thanks!!
Upvotes: 3
Views: 1963
Reputation: 1810
An obvious omission in the options presented so far is COM. I'm expecting the usual flurry of "COM is crap" responses, but in my experience this hasn't been the case.
Upvotes: 1
Reputation: 91320
OTOH:
Pick one - Windows messages or shared memory may be the easier ones.
Upvotes: 5
Reputation: 57749
There are several methods:
The issue is that Process2 will be broadcasting and Process1 will be listening. Process1 will need to know when Process2 is finished and maybe the percentage complete.
I believe Sockets would be the better route, but that depends on the application, development schedule and familiarity of concepts.
Upvotes: 3
Reputation: 437774
There are many options here:
Upvotes: 4