All pastes #169467 Raw Edit

Someone

public c v1 · immutable
·published 2006-09-13 22:32 UTC
rendered paste body
int __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;}