Hi,
I am using a c# library in my c++ project. so I have to convert a
basic string to System::string to make use of a function that takes
System::String as argument. I did it like this:
System::String^ s = gcnew System::String(basic_s.c_str()); //here
basic_s is a basic string in c++
But I found s contains less charactors than the original basic string,
some charactors are missing.
here, the basic string contians bytes that rang from -127 to 127,
which is the result of an encrypting function.
what's wrong with the converting? how to convert the string without
missing charactors?
Thanks!
Vivienne