紧急求助

VERIFY(WideCharToMultiByte(CP_OEMCP,WC_COMPOSITECHECK,str2,str2.GetLength(),buf,255,NULL,NULL));
其中 str2 为cstring
buf 为 char buf[255];
当 str2 ="121我们"
我将转变过的buf 写入txt文件
pFile.Write( pbuf, len);
len 如何得到,使它为 7
清高手帮我
[276 byte] By [jiheng999-~~~~臭球和我~~~~] at [2008-4-24]
# 1
Try "strlen" Function in C Runtime Library.
aawolf-羌狼 at 2007-10-23 > top of Msdn China Tech,硬件/嵌入开发,嵌入开发(WinCE)...
# 2
同意楼上~~
gdyt007-只因专注 at 2007-10-23 > top of Msdn China Tech,硬件/嵌入开发,嵌入开发(WinCE)...
# 3
答案错误,自己解决,不知分可以收回吗
# 4
同意楼上
tongtongde-佟佟 at 2007-10-23 > top of Msdn China Tech,硬件/嵌入开发,嵌入开发(WinCE)...