Sending c# string to c++ server through network -


I am writing a C # client that needs to be communicated to the C ++ server I send a string to the server Looking for a way, I'm stuck, since C is in C # 2 bytes and C ++ is 1.

How can I change my string as a readable four array for the server?

Thanks a lot!

Ps: I feel like there will be one problem with other types like Intel and stuff.

In C ++ you can use std :: wstring That's the wide character and two bytes.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -