473,386 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

OpenGL problem in VC.NET

I have created a small OpenGL app in VC.NET and so far so good. But
when I try to create a GLUquadric object with gluNewQuadric, I get a
runtime error:

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

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

This code is very straigtforward:

GLUquadric *quad=gluNewQuadric();

And is copied straight from a VC6 project. The program runs with no
errors if I take that line out. Any ideas?

Thanks,
John
Nov 17 '05 #1
3 2215
Did you mean to do this from managed code? It sounds like you used the
wrong "new project" wizard and made a .NET application where you wanted a
Win32 application.

-cd

John Vannoy wrote:
I have created a small OpenGL app in VC.NET and so far so good. But
when I try to create a GLUquadric object with gluNewQuadric, I get a
runtime error:

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

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

This code is very straigtforward:

GLUquadric *quad=gluNewQuadric();

And is copied straight from a VC6 project. The program runs with no
errors if I take that line out. Any ideas?

Thanks,
John

Nov 17 '05 #2
Hmm, actually I was trying to do this in managed code, although when I
put "#pragma unmanaged" before it, I don't get the runtime error. Why
would this code not work in managed code?

John

"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam > wrote in message news:<eI**************@TK2MSFTNGP10.phx.gbl>...
Did you mean to do this from managed code? It sounds like you used the
wrong "new project" wizard and made a .NET application where you wanted a
Win32 application.

-cd

John Vannoy wrote:
I have created a small OpenGL app in VC.NET and so far so good. But
when I try to create a GLUquadric object with gluNewQuadric, I get a
runtime error:

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

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

This code is very straigtforward:

GLUquadric *quad=gluNewQuadric();

And is copied straight from a VC6 project. The program runs with no
errors if I take that line out. Any ideas?

Thanks,
John

Nov 17 '05 #3
tr
IntPtr obj=OGL.gluNewQuadric( );
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different...
15
by: oracle411 | last post by:
Hi I'm new to OpenGL, but have an OpenGL application written in CPP that I would like to display on a web browser. Was wondering how this could be done? Thank you very much
2
by: Michael Sgier | last post by:
Hi OpenGL in VC7. I get errors with the default include gl file. Which and where to get working OpenGL files? I also get errors with glfunctions in Kdevelop. Any help here? Thanks indeed....
3
by: john townsley | last post by:
Hi I want to do some OpenGl stuff with c++ on a winXP (home) machine. I have Borland c++ 5, MVS c++ 5 What C++ do you recommend (any others?)and where do you get the OpenGL stuff. thanks
10
by: Bad_Kid | last post by:
which is better for what?
0
by: Scott Chang | last post by:
Hi all, I tried to use Managed C++ coding of VC++.NET (2002)and OpenGL version 1.2 to draw a hexagon shape of benzene. My OpenGLdrawBenzene.cpp is the following: // This is the main project file...
4
by: tobfon | last post by:
I'm creating a scientific visualization application with rather high demands on performance. I've created a nice rendering engine for it in C++/OpenGL and a python interface to the rendering...
3
by: jg.campbell.ng | last post by:
I'm beginning learning Python and OpenGL in Python. Python fine. But difficulties with OpenGL; presumably with the installation of OpenGL. OS = Linux FC5. Python program gl_test.py: from...
9
by: Achim Domma | last post by:
Hi, I'm developing a GUI app in Python/C++ to visualize numerical results. Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there are no windows binaries for Python 2.5 for quite...
3
by: Leon | last post by:
Hey, i am trying to develop a game, and I am using OpenGL and pthread. (on Ubuntu, so i also use the X library.) Now i have a problem. I have initialized OpenGL in the main thread, and i want to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.