1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +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

@@ -25,8 +25,7 @@ void OCC_BaseDoc::ExportView (const Handle(V3d_View)& theView) const
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
CString aFileExt = anExportDlg.GetFileExt();
TCollection_ExtendedString aFileNameW ((Standard_ExtString )(const wchar_t* )anExportDlg.GetPathName());
TCollection_AsciiString aFileName (aFileNameW, '?');
TCollection_AsciiString aFileName ((const wchar_t* )anExportDlg.GetPathName());
// For vector formats use V3d_View::Export() method
if (!(aFileExt.CompareNoCase (L"ps")) || !(aFileExt.CompareNoCase (L"pdf"))