Missing Graphic3d_WNTGraphicDevice.hxx in source code Opencascade version 7.2/7.3

While building Sample projects from the path opencascade-7.3.0\samples\mfc\occtdemo, compilation error shows the following message:

'Cannot open include file: 'Graphic3d_WNTGraphicDevice.hxx': No such file or directory OCCDemo_Presentation.cpp'

This header file is included in StdAfx file, which is present in the source code of open-cascade version 7.2 and 7.3.

Could you guide me in fixing this issue?

Kirill Gavrilov's picture

This is an old outdated sample, which has been removed.
If you are new to OCCT - take a look onto other samples like mfc/standard.

If you are interested in particular sample - you have to upgrade it on your own. For that, an Upgrade Guide might be helpful:
https://dev.opencascade.org/doc/overview/html/occt_dev_guides__upgrade.html

Although for that you might need to understand on which last version of OCCT this sample was compilable...

Kirill Gavrilov's picture

For your information, particular class Graphic3d_WNTGraphicDevice has been removed in OCCT 6.6.0.

Gaurav Sharma's picture

Thank you for the response!

Yes, I am new to OpenCasade.
I could build sample/mfc/standard. It shows an output window and then throws the following error from the method inline void glClear(GLbitfield theMask) in OpenGl_GlCore11Fwd.hxx.

‘Exception thrown at 0x00007FF8B09BDB5F (igc64.dll) in Geometry.exe: 0xC0000090: Floating-point invalid operation (parameters: 0x0000000000000000, 0x0000000000001921).
Unhandled exception at 0x00007FF8B09BDB5F (igc64.dll) in Geometry.exe: 0xC000041D: An unhandled exception was encountered during a user callback.’

Kirill Gavrilov's picture

You can try disabling floating point exceptions coming from Intel driver in file samples\mfc\standard\Common\OCC_App.cpp:

-  OSD::SetSignal (Standard_True);
+  OSD::SetSignal (Standard_False);
Gaurav Sharma's picture

Awesome!! It worked.

Gaurav Sharma's picture

Thanks you for the response!

Yes, I am new to Opencascade.

I could build sample/mfc/standard.

However, there seems to be some minor issue while executing it. It shows an output window and then throws the following error from the method inline void glClear(GLbitfield theMask) in OpenGl_GlCore11Fwd.hxx.

‘Exception thrown at 0x00007FF8B09BDB5F (igc64.dll) in Geometry.exe: 0xC0000090: Floating-point invalid operation (parameters: 0x0000000000000000, 0x0000000000001921).
Unhandled exception at 0x00007FF8B09BDB5F (igc64.dll) in Geometry.exe: 0xC000041D: An unhandled exception was encountered during a user callback.’