mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0027068: Coding - eliminate VC++ 14 compiler warnings in MFC samples
Code is corrected to avoid compiler warnings
This commit is contained in:
@@ -43,7 +43,7 @@ int AFXAPI AfxWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
||||
_SYSTEM_INFO lps;
|
||||
GetSystemInfo(&lps);
|
||||
rep = AllocConsole();
|
||||
hCrt = _open_osfhandle((long) GetStdHandle(STD_OUTPUT_HANDLE),_O_TEXT);
|
||||
hCrt = _open_osfhandle((intptr_t) GetStdHandle(STD_OUTPUT_HANDLE),_O_TEXT);
|
||||
hf = _fdopen( hCrt, "w" );
|
||||
*stdout = *hf;
|
||||
// stop the buffer on stdout
|
||||
|
Reference in New Issue
Block a user