DiscussionsIssue archiveDraw Harness and Samples

Archived discussion

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

Draw Harness and SamplesWed, 07/01/2020 - 20:146 replies

Browse this forum
QuestionAuthor

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?

Discussion

6 archived replies

Posts are displayed in their archived order.

01Commenter-1

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...

02Commenter-1

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

03Author

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.’

04Commenter-1

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);
05Author

Awesome!! It worked.

06Author

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.’