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;
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;