Interprocess communication in C ++

Please help, how can I organize the exchange of process data (on Windows, if that matters)?

I have process1.exeone that calls process2.exewith several command line arguments. I want to track the "progress" process2from process1(let's say some value int). It (value int) can be accessed process1continuously or every X ms - it does not matter.

Any solution will be useful: WinApi or Qt.

Thanks everyone! All answers are very helpful! :) Thank you very much!

+3
source share
5 answers

OTOH:

  • redirect stdin / stdout
  • Named Pipe (CreateNamedPipe)
  • Anonymous Channel (CreatePipe)
  • (, , )
  • (CreateFileMapping, MapViewOfFile)
  • Windows (, WM_APP)

- Windows .

+5

:

+4

:

  • ()

, Process2 , Process1 . Process1 , Process2 , , .

, , , .

+3

Windows Api (SendMessage).

+1

COM. , "COM - ", , , .

+1

All Articles