Home All Groups Group Topic Archive Search About

Adding reference errors...

Author
19 Jun 2006 9:06 AM
Michael
I'm going to study OpenGL, but I'm not having the best of luck starting off...

I use Windows 2000, so I already have the OpenGL32.dll, but when I try to
add it as a reference I get an error saying to determine if it's a valid COM
file, etc...  Anyone have an idea about why this happens?  Also, I'm using
VB.NET

Author
19 Jun 2006 10:09 AM
Cor Ligthert [MVP]
Michael,

This page is from a guy who never plays games, but you can try it.

http://dotnet.mvps.org/dotnet/faqs/?id=opengl&lang=en

I hope this helps,

Cor

Show quoteHide quote
"Michael" <Mich***@discussions.microsoft.com> schreef in bericht
news:C7CC42C6-BC36-41A8-AA2C-9C7CD121CBFD@microsoft.com...
> I'm going to study OpenGL, but I'm not having the best of luck starting
> off...
>
> I use Windows 2000, so I already have the OpenGL32.dll, but when I try to
> add it as a reference I get an error saying to determine if it's a valid
> COM
> file, etc...  Anyone have an idea about why this happens?  Also, I'm using
> VB.NET
Author
19 Jun 2006 10:44 AM
Herfried K. Wagner [MVP]
"Michael" <Mich***@discussions.microsoft.com> schrieb:
> I use Windows 2000, so I already have the OpenGL32.dll, but when I try to
> add it as a reference I get an error saying to determine if it's a valid
> COM
> file, etc...  Anyone have an idea about why this happens?  Also, I'm using
> VB.NET

The DLL is a native DLL.  You cannot reference it.  Instead you will have to
use 'Declare' or 'DllImport' to import the functions exported by the DLL.
Cor has already provided the address of my collection of OpenGL wrappers for
..NET.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
19 Jun 2006 11:20 AM
Michael
Thanks a bunch!!!

Show quoteHide quote
"Herfried K. Wagner [MVP]" wrote:

> "Michael" <Mich***@discussions.microsoft.com> schrieb:
> > I use Windows 2000, so I already have the OpenGL32.dll, but when I try to
> > add it as a reference I get an error saying to determine if it's a valid
> > COM
> > file, etc...  Anyone have an idea about why this happens?  Also, I'm using
> > VB.NET
>
> The DLL is a native DLL.  You cannot reference it.  Instead you will have to
> use 'Declare' or 'DllImport' to import the functions exported by the DLL.
> Cor has already provided the address of my collection of OpenGL wrappers for
> ..NET.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
>
Author
19 Jun 2006 11:49 AM
Michael
Well, how does that guy do this

<code>
Imports CsGL.OpenGL

Public Class Form1
  Inherits System.Windows.Forms.Form
  Private view As myOpenGL.myView
  Private thrOpenGL
<end code>

I've tried 'Private view as' and it stops there becuase there is no such
thing as 'myOpenGL.myView'  Even if you reference to 'CsGL.dll'
Author
19 Jun 2006 12:02 PM
Cor Ligthert [MVP]
Michael,

I don't know anything from OpenGl than that it is an alternative for DirectX
to play games.

But this looks strange to me.
>  Private view As myOpenGL.myView
This is normaly

Private myView as OpenGL.View

Cor
Author
20 Jun 2006 12:56 AM
Michael
Thanks for pointing this out.  I've had problems like this happen on hundreds
of other sites before.