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;

你可能感兴趣的:(chart)