Search code examples
stringwindows-8c++-cli

How to convert from char to Platform::String^ (C++/CLI)


How do you convert from a char to a Platform::String^?

The documentation for Platform::String is here but does not mention how to convert to and from different data types.

http://msdn.microsoft.com/en-us/library/windows/apps/hh755812(v=vs.110).aspx


Solution

  • ref new Platform::String(&ch, 1);