mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-15 04:04:07 +08:00
0027880: Samples - fix handling of Unicode paths within MFC import/export sample
This commit is contained in:
@@ -4388,7 +4388,7 @@ Standard_Real Length = System.Mass();\n\
|
||||
gp_Mat I = System.MatrixOfInertia();\n\
|
||||
\n");
|
||||
PocessTextInDialog("Linear Properties", Message);
|
||||
MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, (const wchar_t* )string.ToExtString(), L"Linear Properties", MB_OK);
|
||||
MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, string.ToWideString(), L"Linear Properties", MB_OK);
|
||||
}
|
||||
|
||||
void CModelingDoc::OnSurface()
|
||||
@@ -4503,7 +4503,7 @@ Standard_Real Area = System.Mass();\n\
|
||||
gp_Mat I = System.MatrixOfInertia();\n\
|
||||
\n");
|
||||
PocessTextInDialog("Surface Properties", Message);
|
||||
MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, (const wchar_t* )string.ToExtString(), L"Surface Properties", MB_OK);
|
||||
MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, string.ToWideString(), L"Surface Properties", MB_OK);
|
||||
|
||||
}
|
||||
|
||||
@@ -4585,7 +4585,7 @@ Standard_Real Volume = System.Mass();\n\
|
||||
gp_Mat I = System.MatrixOfInertia();\n\
|
||||
\n");
|
||||
PocessTextInDialog("Volume Properties", Message);
|
||||
MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, (const wchar_t* )string.ToExtString(), L"Volume Properties", MB_OK);
|
||||
MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, string.ToWideString(), L"Volume Properties", MB_OK);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user