getpathName不读日语

getpathName不读日语

本文介绍了CFileDialog getpathName不读日语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个日语文件夹名称.选择该文件夹时,CFileDialog getpathName返回一些问号.有什么办法解决吗?
问候,
sherin

I have a folder name in japanese.CFileDialog getpathName is returning some Question marks when the folder is selected. Is there some way to solve it?
regards,
sherin

推荐答案

CString FileName;
CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, _T("JPEG Files (*.jpeg, *.jpg)|*.jpeg; *.jpg||"), NULL );
if (dlg.DoModal() == IDOK)
{
    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
    FileName = dlg.GetPathName();
    //Standard_CString aFileName = (Standard_CString)(LPCTSTR FileName);
}



这篇关于CFileDialog getpathName不读日语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 11:07