char *cpResult = cs1->cname;
int dwNum = MultiByteToWideChar(CP_ACP, 0, cpResult, strlen(cpResult) + 1, NULL, 0);
wchar_t *widebuff = new wchar_t[dwNum];
MultiByteToWideChar(CP_ACP, 0, cpResult, strlen(cpResult) + 1, widebuff, dwNum);
FString str= FString(widebuff); |