1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027880: Samples - fix handling of Unicode paths within MFC import/export sample

This commit is contained in:
kgv
2016-09-19 11:46:27 +03:00
committed by bugmaster
parent b357dcc225
commit e620e2857f
8 changed files with 34 additions and 45 deletions

View File

@@ -134,19 +134,19 @@ void CImportExportApp::OnFileOpen()
// add to filter
strFilter += strFilterName;
ASSERT(!strFilter.IsEmpty()); // must have a file type name
strFilter += (TCHAR)'\0'; // next string please
strFilter += (TCHAR)'*';
strFilter += L'\0'; // next string please
strFilter += L'*';
strFilter += strFilterExt;
strFilter += (TCHAR)'\0'; // next string please
strFilter += L'\0'; // next string please
dlg.m_ofn.nMaxCustFilter++;
}
// append the "*.*" all files filter
CString allFilter;
VERIFY(allFilter.LoadString(AFX_IDS_ALLFILTER));
strFilter += allFilter;
strFilter += (TCHAR)'\0'; // next string please
strFilter += _T("*.*");
strFilter += (TCHAR)'\0'; // last string
strFilter += L'\0'; // next string please
strFilter += L"*.*";
strFilter += L'\0'; // last string
dlg.m_ofn.nMaxCustFilter++;
dlg.m_ofn.lpstrFilter = strFilter;