MultiByteToWideChar 求助!!!!!!!!!!!
MultiByteToWideChar转换为unicode
1。第一个参数 UINT CodePage, // code page
Specifies the code page to be used to perform the conversion
是什么意思呢,看了msdn也不太明白
比如:
MultiByteToWideChar(CP_UTF8, //这个参数是指要转换成的编码,还是传入的参数的编码,或是什么
0,
toTrans,
len,
fchar,
len * 2+2
);
用的机器是日文系统。在VC中调试时,发现toTrans(被转换的串)是日文时,用MultiByteToWideChar计算所需的内存时,返回值有时候不正确,这样调用的MultiByteToWideChar(CP_UTF8, 0, toTrans, len, NULL, 0 );