Adding reference errors...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael

    #1

    Adding reference errors...

    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
  • Cor Ligthert [MVP]

    #2
    Re: Adding reference errors...

    Michael,

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



    I hope this helps,

    Cor

    "Michael" <Michael@discus sions.microsoft .com> schreef in bericht
    news:C7CC42C6-BC36-41A8-AA2C-9C7CD121CBFD@mi crosoft.com...[color=blue]
    > 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[/color]


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Adding reference errors...

      "Michael" <Michael@discus sions.microsoft .com> schrieb:[color=blue]
      > 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[/color]

      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/>

      Comment

      • Michael

        #4
        Re: Adding reference errors...

        Thanks a bunch!!!

        "Herfried K. Wagner [MVP]" wrote:
        [color=blue]
        > "Michael" <Michael@discus sions.microsoft .com> schrieb:[color=green]
        > > 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[/color]
        >
        > 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/>
        >
        >[/color]

        Comment

        • Michael

          #5
          Re: Adding reference errors...

          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.myVie w' Even if you reference to 'CsGL.dll'

          Comment

          • Cor Ligthert [MVP]

            #6
            Re: Adding reference errors...

            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.[color=blue]
            > Private view As myOpenGL.myView[/color]
            This is normaly

            Private myView as OpenGL.View

            Cor


            Comment

            • Michael

              #7
              RE: Adding reference errors...

              Thanks for pointing this out. I've had problems like this happen on hundreds
              of other sites before.

              Comment

              Working...