Send C++ string to C# string. Interop

后端 未结 3 834
眼角桃花
眼角桃花 2021-02-06 18:36

I am new to inter process communication and need some help. I want to be able to send a string from a C++ program to a C# program. My problem is that the resultant string is g

3条回答
  •  既然无缘
    2021-02-06 19:33

    Your string in C++ is ANSI. You need to convert to Unicode somewhere for C#. It's been a couple of years since I did interop, so someone else will have to tell you exactly how to do that.

提交回复
热议问题