Код: Выделить всё
#include
#include
int main() {
const char* text = "hello";
std::wstring* wtext = malloc(5);
strcpy(wtext, text);
std::wcout
Подробнее здесь: [url]https://stackoverflow.com/questions/78689066/how-to-convert-string-to-wstring[/url]