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

Vitor Hugo Barros b4silence9 at yahoo.com
Sun Feb 18 20:44:08 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">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

I don't have a clue if this can be a bug, anyway thought it would be better to send it to you.

Could you please take a look on this?

Thanks.




 
____________________________________________________________________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20070218/ec93d038/attachment.html 


More information about the Mono-winforms-list mailing list