Interprocess Communication Between C# application and unmanaged C++ application

前端 未结 8 2385
感动是毒
感动是毒 2021-01-05 15:20

I have two Windows services, the first one written in C# and the second written in unmanaged C++, I want to know how can I do two-way interprocess communication.

8条回答
  •  忘掉有多难
    2021-01-05 15:41

    Sockets are probably your best bet.

    With sockets your not necessarily tied to both programs being on the same machine.

    Also, it's likely to be the most portable option (heck, Windows even has select() for sockets).

提交回复
热议问题