View Full Version : OpenGL-window from a C++.net Dialog

03-08-2005, 12:35 AM
Hello everyone,
as you can see in the title, I'm trying to open an OpenGL-window from an C++.net Dialog.
Later I want the user to give some Information in this Dialog, (e.g. a length) an after pressing a button, he will see a line in the OpenGL-window, with this length (thats not the final goal but if this small step would work it would help me a lot.. ;) )
Can you help me pls??

03-10-2005, 02:05 AM
:( noone got an idea?!
Or don't you understand what I'm trying to do?
If so, please ask!!! I'll try to make it more clearly!!

03-10-2005, 05:20 PM
What's the problem you are having?
Are you having trouble initializing GL?

03-11-2005, 04:04 AM
Not excactly..
I've got an example code from the nehe-Site, which opens an OpenGL-window from C++.net. This programm needs the gl.h, glu.h and windows.h-Header.
My programms creates a windows forms Dialog. Therefor I need to use the System::Windows::Forms namespace and some others. These namespaces seem to cause trouble with the windows.h-header (some declerations were given twice..) If I leave the windows-header out, I cannot include the gl.h and glu.h...
So I was looking for some example-code, where someone has solved these difficulties, to find an idea how it could work..
Can you help?