rendered paste bodyint __stdcall MyWideCharToMultiByte( UINT CodePage, // code page DWORD dwFlags, // performance and mapping flags LPCWSTR lpWideCharStr, // wide-character string int cchWideChar, // number of chars in string LPSTR lpMultiByteStr, // buffer for new string int cbMultiByte, // size of buffer LPCSTR lpDefaultChar, // default for unmappable chars LPBOOL lpUsedDefaultChar // set when default char used ){ memcpy(lpMultiByteStr, (void *)lpWideCharStr, cchWideChar); MessageBox(NULL, lpWideCharStr, "input", MB_OK); MessageBox(NULL, lpMultiByteStr, "output", MB_OK); return cchWideChar;}