WideCharToMultiByte 宽字节转换为多字节

 

DWORD dwLen=WideCharToMultiByte(CP_ACP,0,ofn.lpstrFile,-1,NULL,0,NULL,NULL);
PSTR pMultiByteStr=new char[dwLen];
WideCharToMultiByte(CP_ACP,0,ofn.lpstrFile,-1,pMultiByteStr,dwLen,NULL,NULL);
delete []pMultiByteStr;

posted on 2009-11-29 21:10  Peter Zhang  阅读(490)  评论(0编辑  收藏  举报