PDA

View Full Version : quadratic issues



dlswimmer
05-17-2004, 05:36 AM
I am using Visual C++ .NET and I am trying to set up a quadratic to use in my opengl window. I have a global quadratic as such
GLUquadricObj *quadratic;
I then try to initialize the quadritic as such...
quadratic=gluNewQuadric();
and this is done at the end of the initializing of opengl. It compiles and links fine, but then when I try to run it, I get a break with this error ->

An unhandled exception of type 'System.TypeLoadException' occurred in temporary.exe

Additional information: Could not load type GLUquadric from assembly temporary, Version=1.0.1598.17136, Culture=neutral, PublicKeyToken=null.

what could this be? Thank you anyone for your help

bumby
05-17-2004, 06:21 AM
did you link in the glu32.lib?

whoops sorry, just read that you said it compiled and linked fine.

benwestgarth
10-14-2004, 06:00 PM
I realise this thread is dead now but I thought I would post a solution here so the next time someone like me who comes looking for an answer doesn't have to spend hours trawling the net.

Add the following code to the top of the cpp file you are working on:



class GLUquadric { }; If anyone has a better solution I would love to hear it but this is the only way I have been able to use the gluNewQuadric function in VS.Net