Sun, 03/19/2000 - 02:36
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
Sun, 03/19/2000 - 19:08
The answer too... knowing that the project compiles successfully. Best regards Omar
Mon, 03/20/2000 - 10:32
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.
Mon, 03/20/2000 - 16:56
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.
Mon, 03/20/2000 - 18:40
> 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.
Tue, 03/21/2000 - 02:26
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
Tue, 03/21/2000 - 10:24
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.
Tue, 03/21/2000 - 20:02
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