How to initialize in VB.Net?

Hi everyone. I'm trying to figure out how to convert C# code to VB.Net, and so far, this is the best I can do:

  1. Imports System
  2. Imports System.Collections.Generic
  3. Imports AgateLib
  4. Imports AgateLib.DisplayLib
  5. Imports AgateLib.Geometry
  6.  
  7. Namespace TestingGame
  8.     Class Initialising
  9.         Public Shared Sub Main()
  10.             Using AgateSetup As New AgateSetup()
  11.                 AgateSetup.InitializeAll()
  12.                 If AgateSetup.WasCanceled Then
  13.                     Return
  14.                 End If
  15.                 DisplayWindow.CreateWindowed("Testing App", 640, 480)
  16.                 While Display.CurrentWindow.IsClosed = False
  17.                     Display.BeginFrame()
  18.                     Display.Clear(Color.Aqua)
  19.                     Display.EndFrame()
  20.                     Core.KeepAlive()
  21.                 End While
  22.             End Using
  23.         End Sub
  24.  
  25.         Sub DrawStuff()
  26.             Dim srface = New Surface(My.Resources.fallout.ToString)
  27.             srface.Draw(20, 30)
  28.         End Sub
  29.     End Class
  30. End Namespace

Basically what happens is an error pops up at the line saying "AgateSetup.InitializeAll(): No display drivers registered." Well, I guess that makes sense, so how do I register them?

It looks like your code is

It looks like your code is fine. Probably you are missing a display driver from the directory where your executable is. If you want to use OpenGL, check that directory for AgateOTK.dll and OpenTK.dll and put them in there if they aren't there.