[Mono-winforms-list] NeHe's OpenGL C# example

b4silence b4silence9 at yahoo.com
Sun Feb 18 20:44:38 EST 2007


Hello all,


I'm trying to compile the Nehe's OpenGL on C# example 
http://nehe.gamedev.net/counter.asp?file=files/basecode/nehegl_csharp.zip
http://nehe.gamedev.net/counter.asp?file=files/basecode/nehegl_csharp.zip 
using mono 1.2.3.1 and monodevelop 0.12.

I'm getting the following error:

Unhandled Exception: System.EntryPointNotFoundException: GetDC
  at (wrapper managed-to-native) OpenGL.WGL:GetDC (uint)
  at OpenGL.BaseGLControl.InitializeGL (System.Object sender,
System.EventArgs e) [0x00014] in
/home/b4silence/nehegl_csharp/NeHeCS/BaseGL.cs:120 
  at (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
  at System.Windows.Forms.UserControl.OnLoad (System.EventArgs e) [0x0001c]
in
/tmp/scratch/BUILD/mono-1.2.3.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/UserControl.cs:87 
  at System.Windows.Forms.UserControl.OnCreateControl () [0x00006] in
/tmp/scratch/BUILD/mono-1.2.3.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/UserControl.cs:80 
  at System.Windows.Forms.Control.CreateControl () [0x000a2] in
/tmp/scratch/BUILD/mono-1.2.3.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3244 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:CreateControl ()
  at System.Windows.Forms.Control.CreateControl () [0x00070] in
/tmp/scratch/BUILD/mono-1.2.3.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3235 
  at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00032]
in
/tmp/scratch/BUILD/mono-1.2.3.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4190 
  at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x0001f] in
/tmp/scratch/BUILD/mono-1.2.3.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1972 
  at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000] in
/tmp/scratch/BUILD/mono-1.2.3.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:2954 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:set_Visible (bool)
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00055] in
/tmp/scratch/BUILD/mono-1.2.3.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:549 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
mainForm) [0x00000] in
/tmp/scratch/BUILD/mono-1.2.3.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:520 
  at MyFormProject.MainForm.Main (System.String[] args) [0x00055] in
/home/b4silence/nehegl_csharp/NeHeCS/MainForm.cs:109

Could you help me on this?

Thanks.
-- 
View this message in context: http://www.nabble.com/NeHe%27s-OpenGL-C--example-tf3250550.html#a9036113
Sent from the Mono - WinForms mailing list archive at Nabble.com.



More information about the Mono-winforms-list mailing list