setlocale(LC_ALL, "Russian");
char* c="фывапр";
int q = CP_ACP;
int b = MultiByteToWideChar(q, 0, c, -1, 0, 0);
wchar_t* o = new wchar_t[b];
MultiByteToWideChar(q, 0, c, -1, o, b);
printf("%s\n", o);
wchar_t* c=L"фывапр";
#include <windows.h>
....
DWORD n;
WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE), L"фыва", 4, &n, 0);