View Full Version : Window Forms and Opengl

05-16-2004, 02:57 AM
Does anybody knows how to set up opengl in Managed C++ using Window Forms? I know how it is done using the MFC but managed c++ is something else. I don't even know how to get the Current Device Context: HDC hdc = GetDC(this) returns an error. I just need to get started.



05-18-2004, 09:20 PM
You don't have to worry too much about device contexts in managed c++, even with opengl. There is a good document on codeproject.com for this, but you have to search for it, I don't have the url. Just be sure you understand the __gc option for classes, because it can lead to many class errors when mixing code.