> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:mono-
> [EMAIL PROTECTED] On Behalf Of b4silence
> Sent: lunes, 19 de febrero de 2007 2:45
> To: mono-winforms-list@lists.ximian.com
> Subject: [Mono-winforms-list] NeHe's OpenGL C# example
> 
> 
> 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.z
> ip
> http://nehe.gamedev.net/counter.asp?file=files/basecode/nehegl_csharp.z
> ip
> 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,

The code is using platform invoke to call directly into GetDC in user32.dll,
which doesn't exist on Linux.
You'll have to change the code to not use platform invokes (or find Linux
equivalents).
I know nothing about OpenGL, so there I can't help you :)

Rolf 

> 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/UserContro
> l.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/UserContro
> l.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:19
> 72
>   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/Applicatio
> n.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/Applicatio
> n.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.
> 
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> 
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.441 / Virus Database: 268.18.1/691 - Release Date:
> 17/02/2007 17:06


_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to