1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0024943: Port MFC samples to UNICODE for compatibility with VS2013

Add vc12 project files for MFC samples.

CMake - add Unicode option for MFC samples

CMake - do not set MFC option globally

Update description of Cmake building procedure for MFC sample

Correction of cmake.md and automake.md

0024943: Port MFC sample to UNICODE for compatibility with VS2013
The formatting of developer guides about OCCT building with various build systems has been improved.

automake article clean up
This commit is contained in:
kgv
2014-07-31 13:52:43 +04:00
committed by bugmaster
parent 9d0fc01b3f
commit 576f8b111b
140 changed files with 7640 additions and 1202 deletions

View File

@@ -78,8 +78,8 @@ Convert_Presentation::Convert_Presentation()
void Convert_Presentation::DoSample()
{
((COCCDemoApp*) AfxGetApp())->SetSampleName("Convert");
((COCCDemoApp*) AfxGetApp())->SetSamplePath("..\\..\\10_Convert");
((COCCDemoApp*) AfxGetApp())->SetSampleName (L"Convert");
((COCCDemoApp*) AfxGetApp())->SetSamplePath (L"..\\..\\10_Convert");
getAISContext()->EraseAll();
if (myIndex >=0 && myIndex < myNbFuncs)
(this->*SampleFuncs[myIndex])();

View File

@@ -36,7 +36,7 @@ COCCDemoApp::COCCDemoApp() : OCC_App()
}
catch (Standard_Failure)
{
AfxMessageBox ("Fatal Error During Graphic Initialisation");
AfxMessageBox (L"Fatal Error During Graphic Initialisation");
}
}

View File

@@ -154,8 +154,7 @@ void COCCDemoDoc::DoSample()
{
Standard_SStream aSStream;
aSStream << "An exception was caught: " << Standard_Failure::Caught() << ends;
Standard_CString aMsg = aSStream.str().c_str();
// aSStream.rdbuf()->freeze(0); // allow deletion of dynamic array
CString aMsg = aSStream.str().c_str();
AfxMessageBox (aMsg);
}
}

View File

@@ -111,7 +111,7 @@ void CResultDialog::Initialize()
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
FF_MODERN, // Fix width fonts are FF_MODERN
"Courier New")); // lpszFacename
L"Courier New")); // lpszFacename
pEd->SetFont(&aFixedWidthFont, false);
// save button's width and height, so they are calculated only once