dimanche 23 octobre 2016

How do I initialize a Platform::String with a u16string?

Basically, I want to know how to go from a std::u16string to a c++/cx Platform::String. For users that got here via the c++ tag, Platform::String can be initialized from a std::wstring so if you know how to go from a std::u16string to an std::wstring that would work too. The strange thing is that the documentation for Platform::String shows the constructor can take a char16* argument but in reality it actually seems to take a wchar_t* argument

http://ift.tt/2ezrkU3

Aucun commentaire:

Enregistrer un commentaire