C# - Starting a Process and Passing Data

Started by
1 comment, last by 31337 20 years, 2 months ago
I have an application model where a C# application needs to start a compiled (not managed) C++ Win32 application and then pass data to it as is nessecary. How do I do this? I know there is the System.Diagnostics.Run command (I think its run) but I can''t figure out how to get them to communicate. The only thing I could think of was creating a socket and recieving on the C++ app and sending on the C# app but that sounds wasteful and dumb. Does anybody have any better alternatives? Thanks
OpenGL Revolutions http://students.hightechhigh.org/~jjensen/
Advertisement
Well, there are tons of ways: command line arguments, named
pipes, files, sockets (as you mentioned), DLL''s, even
by sending Windows messages. Take your pick.


Kami no Itte ga ore ni zettai naru!
神はサイコロを振らない!
I guess sockets are the best way
OpenGL Revolutions http://students.hightechhigh.org/~jjensen/

This topic is closed to new replies.

Advertisement