I need to pass some data (integers) from one (C++) program to another (C#). What is the fastest way to do this?
P.S.: OS: Windows XP
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My personal preference for this, given that you’re using C++ and C# both, and it’s on the same system, would be to use Pipes.
They work very well from native code (C++) as well as from C# via NamedPipeClientStream and NamedPipeServerStream.
However, there are other options for Interprocess Communication, any of which would work.