Search code examples
c++stringc++-climarshallinglpcstr

C++ /cli Convert LPCSTR to System::String^


I'm having a problem with converting LPCSTR to System::String^, though i am able to convert System::String to LPCSTR with Marshal.

But how can i convert LPCSTR to System::String^

Thank You


Solution

  • gcnew System::String(lpcstrThing);