c# - Connection and communication between console and forms project in the same solution -
i have quite small (so far) project consists of
- core
- gui
- tui
the tui (console application) communicating console application in order send , retrieve information.
the purpose of gui make easier.
however, stuck on how make tui communicate gui. far, know can start tui gui this:
system.diagnostics.process.start(@"cmd.exe", @"/k c:\project\tui\bin\debug\tui.exe");
but now, not have reference console application , not know send information forth , back. tried search answer, search lead how start them in normal way (not both, together, communicating).
so in all, question is: how start console application windows forms project 2 able communicate?
you can use input , outut streams of process.
read :
https://msdn.microsoft.com/de-de/library/system.diagnostics.process.standardinput(v=vs.110).aspx
Comments
Post a Comment