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) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -