How to convert char * to a System::string ^ <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/56561/what-is-the-best-way-to-convert-between-char-and-systemstring-in-c-cli">What is the best way to convert between char* and System::String in C++/CLI</a> </p> </blockquote> <p>Hello, I have a function in a c++ project using \clr something like:</p> <pre><code>int WINAPI dmtTest(char *pcertificate) { String^ sCertificate; sCertificate = pcertificate; // how can I assign pcertificate to sCertificate? .... } </code></pre>