Miguel P
Miguel P

Reputation: 1292

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

Upvotes: 2

Views: 3625

Answers (1)

MikeP
MikeP

Reputation: 7959

gcnew System::String(lpcstrThing);

Upvotes: 7

Related Questions