I've tried convert a char* to wchar_t*, but I'm having some trouble using the mbstowcs and Visual Studio wants mbstowcs_s...
char *port;
size_t size = strlen(port) + 1;
wchar_t* portName = new wchar_t[size];
mbstowcs(portName, port, size);
How can I change the function to mbstowcs_s?
mbstowcs_s
?std::string
andstd::wstring
than frommbstowcs_s
.