Convert Unmanaged char to magaged string (String ^ ) in VC++. Net
Posted on 2010-09-10
I would like to convert unmanaged char to managed string in VC++ .net. I was able to convert char * to String^ using the below statement ,however I was not able to convert char to String^.
String ^ CXMLUtil::ConvertChartoString(const char *ch)
String ^ strValue=gcnew String(ch);
Please let me know how to convert unmanaged char to managed string String^.