c++ - Converting LPSTR to LPCWSTR -
this question has reply here:
how convert lpcstr lpcwstr in c++ 2 answersi have 2 functions! first 1
getusername(lpstr buffer, lpdword size);
and
setinfo(lpcwstr user, int secret);
i have take output getusername buffer lpstr
then have utilize string in setinfo function lpcwstr
my question is; safest , best approach doing this?
can multibytetowidechar used here? thanks!
if getusername function windows api function can explicitly phone call wide version:
wchar_t buffer[100]; getusernamew(buffer,100); c++ winapi
No comments:
Post a Comment