Possible Duplicate:
What is the best way to convert between char* and System::String in C++/CLI
Hello, I have a function in a c++ project using \clr something like:
int WINAPI dmtTest(char *pcertificate)
{
String^ sCertificate;
sCertificate = pcertificate; // how can I assign pcertificate to sCertificate?
....
}
You can do:
String^ sCertificate;
sCertificate = gcnew String(pcertificate);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With