Reputation: 30973
I have native win32 application that starts Qt exe application with (probably ) CreateProcess function The Qt application doing some work , now when the Qt application done its job I need it somehow to signal back with returned parameter String type . what is the best way to implement such thing ?
Upvotes: 1
Views: 347
Reputation: 613612
I think I would use stdout to communicate this. When you call the process create a file in a temporary location and pass its handle to the new process as stdout. Then wait on the newly created process handle. Once the process finishes read the information out of the file.
Upvotes: 0
Reputation: 1220
I'm not sure if this solution is to trivial for you but here it is anyway:
a) let the Qt application write something on stdout, the calling win32 application should be able to read it and parse it.
b) You could for a brief moment use the windows clipboard QClipboard
c) You could write a temporary file containing the string.
Best regards
D
Upvotes: 1