PDA

View Full Version : help with GLUquadricOBJ



ForumJP
10-09-2004, 12:46 PM
hi, i am a student user of opengl. in my code...i used the type GLUqudricOBJ so i can use the opengl function gluCyclinder to draw cyclinders...i compiled the code no problem...however...the glut window will not open and gives me this msg:

Unhandled Exception: System.TypeLoadException: Could not load type GLUquadric fr
om assembly TEST, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
at base()
at display() in c:\documents and settings\benson\my documents\visual studio p
rojects\experiments\test\test\test.c:line 481
at glutMainLoop()
at main(Int32 argc, SByte** argv) in c:\documents and settings\benson\my docu
ments\visual studio projects\experiments\test\test\test.c:line 536
Press any key to continue

i am guessing the problem is not within the code... i am currently using microsoft visual studio.net professional edition with windows xp ... have anyone come across the same problem or does anyone no how to resolve this ??
thanks for your time~

mikael_aronsson
10-11-2004, 01:46 AM
Hi !

It look's like you try to compile your code as managed code (the TypeLoadException is a .NET exception and you don't get it from ordinary C/C++ code), so disable managed code compilation and try again and see if that works better.

Mikael

ForumJP
10-12-2004, 08:57 AM
hi mikael, thanks for ur help... but how do i disable the manage code compilation? sorry i am new at this~
benson~

EternalCelibacy
10-12-2004, 12:46 PM
Goto Project->Preferences->General and change Use Managed Expressions to No.

Dol AI with 3D Bone system
10-12-2004, 09:10 PM
Hi dude! Do you use MS VC++?

I use Delphi...

Can I exchange idea for this?

ForumJP
10-15-2004, 09:16 AM
hey eternal...i couldn't find what the preference thing u were saying... r u talking about visual studio.net ??