For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Fatal Error opening SampleViewer 3d

Anonymous's picture
Forums: 

The function myGraphicDevice = new Graphic3d_WNTGraphicDevice(); causes an error in the file CSampleViewer3dApp. It seems coming from the fact that the Handle is declared unknown by the C++6.0 browser. All libraries and inc.files are correctly linked.

Any hint ???

Greetings to all of you

Albert

Omar Msaaf's picture

The answer too... knowing that the project compiles successfully. Best regards Omar

Philippe Centa's picture

Please do not forget the FAQs :

http://www.opencascade.org/needhelp/faqenvvar.html

Your problem is probably due to the lack of

set CSF_GraphicShr=e:\cascade3.0\windows_nt\dll\OpenGl.dll

Hope it helps.

Omar Msaaf's picture

Have compiled. But it did. I even see the first dialog boc where Cascade displays the messages. The error comes up When loading the Graphic3d_WNTGraphicDevice. I saw that when debugging the project. When the main app tries to be loaded there is a failure... Hopes this will help you to give us a clue.

Philippe Centa's picture

> Have compiled. But it did.

This variable is not used at build time.

I even see the
> first dialog boc where Cascade displays the
> messages.

It always does it that way.

The error comes up When loading
> the Graphic3d_WNTGraphicDevice. I saw that
> when debugging the project. When the main
> app tries to be loaded there is a failure...

I stick to a variable problem, a blank in the %CASROOT% path maybe, or a very old 95 version where the system does not contain opengl32.dll (those who are OSR2 and up have got it).

> Hopes this will help you to give us a clue.

I apologize for not giving much help.

Albert Yves COSTA's picture

Thanks for the tip, but obviously the correct values were set in Autoexec.bat as it must be under W95. All 2D samples worked fine, and The Test Harness too. I even forced the Graphic3d_WNTGraphicDevice to accept the correct value for the OpenGL dll, but the Result = MySharedLibrary.DlOpen (OSD_RTLD_LAZY) was 0. So what???

A bientôt, Philippe, et merci d'avance!

Albert Yves COSTA

Philippe Centa's picture

As you speak about autoexec.bat and 95, I dare ask you if you have got OpenGl32.dll in the system because this was not provided before W95 OSR2.

Hope it helps.

Albert Yves COSTA's picture

I have W95OSR2 and OpenGl32.dll in C\Widows\System. I have already developed applications of my own using OpenGL32, and also samples from SGI.

Amitiés A.Y. COSTA