Dec 25, 2015 at 10:39pm
I googled: WORD to wchar_t
but found nothing
any ideas?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
wchar_t user[UNLEN + 1];
DWORD size = UNLEN + 1;
GetUserNameW(user, &size);
SYSTEMTIME time;
wchar_t termname[260];
wchar_t day = time.wDay;
wchar_t hour = time.wHour;
wchar_t minute = time.wMinute;
wcscpy_s(termname, user); //no problem with this one
wcscat_s(termname, L".");
wcscat_s(termname, day);
wcscat_s(termname, L".");
wcscat_s(termname, hour);
wcscat_s(termname, L".");
wcscat_s(termname, minute);
|
Last edited on Dec 25, 2015 at 10:41pm
Dec 26, 2015 at 1:47am
Last edited on Dec 26, 2015 at 1:47am