Original Post
So, I decided to learn some C# and make a level editor at the same time. Being a cross platform entusiast, I decided to use Mono and Tao for OpenGL access, I created the prototype app on Visual Studio, later managed to compile and run it unsing Mono on Cygwin, then switched to Linux to try my luck. Initially I had problems with System.Windows.Forms, after updating Mono from 1.1.7 to 1.2 the program compiled, but when run I get this exception thrown:
Quote:So, after a while it hit me that it was looking for a gdi32 function (GetDC) that obviously does not exist on Linux, so this is entirelly logical, but I NEED 4 Tao.Platform.Windows.SimpleOpenGlControl objects on my form (1 perspective view, 3 ortho, the standard 3D editor layout), SDL can't do more than one window, so that is not an option, so the question is: am I doing something wrong? am I going to have to use gtk#? is there a workaround for this? I guess implementing something along the line of Tao.Platform.X11 or Tao.Platform.Mono is an option, but if I don't have to, it would be great, after all one of the reasons to use C# was to cut development time. Thanks for your time.
Unhandled Exception: System.EntryPointNotFoundException: GetDC at (wrapper managed-to-native) Tao.Platform.Windows.User:GetDC (intptr) at Tao.Platform.Windows.SimpleOpenGlControl.InitializeContexts () [0x00000] ...