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

3.5k Views Asked by At

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

1

There are 1 best solutions below

2
On BEST ANSWER
gcnew System::String(lpcstrThing);