Window Forms and Opengl

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.



You don’t have to worry too much about device contexts in managed c++, even with opengl. There is a good document on 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.