I see from the discussion that a few have figured out how to utilized OpenGL using Managed C++.NET and Windows Forms. I would appreciate if someone could provide an example. I have studied the Win32 port on the Microsoft MSDN web site. I tried to port it to Managed C++.NET, but it always generates a runtime type error. Is there an obivious way to do it?
I would like to utilize the wgl interface directly from C++. I am able to get the window handle to the form, but not its device context. The problem is when the program gets the device context for the form the graphics class becones undefined and you get a runtime error. I wrote a C++ wrapper for everything else, but am unable to get the device contact. Can someone help with this or explain how they solved the problem?
Thanks to all in advance.