void Unicode2Ansi(TCHAR *unicode, char *ansi)
{
int n;
n = WideCharToMultiByte(CP_ACP, 0, unicode, -1, ansi, 0, NULL, FALSE);
WideCharToMultiByte(CP_ACP, 0, unicode, -1, ansi, n, NULL, FALSE);
}
void Ansi2Unicode(TCHAR *unicode, char *ansi)
{
int n;
n = MultiByteToWideChar(CP_ACP, 0, ansi, -1, 0, 0);
MultiByteToWideChar(CP_ACP, 0, ansi, -1, unicode, n);
}
沒有留言:
張貼留言