Help! Open gl library & visual basic

I can’t make a reference to the opengl32.dll or glu32.dll with Visual Basic 6.0. It will say “Can’t add reference to the specified file”. I’m currently using Windows XP and I don’t know what is the problem. The libraries do not even show up in the list of references. What should I do and how should I set up Visual Basic to run opengl?

You can’t set a reference to the OpenGL32.dll because it is not an ActiveX dll.

You can however set a reference to the type library found at http://is6.pacific.net.hk/~edx/tlb.htm which will allow you to access the GL functions from VB. If for some reason, you do not want to use this type library, you would have to use the VB Declare statement to define all of the GL functions. I highly recommend using the type library

Pat