2 Questions

Started by
1 comment, last by Drath 22 years, 4 months ago
1) I want to run ''CreateGLWindow'' by itself in a dll. I added these lines of code to it: glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear The Screen And The Depth Buffer glLoadIdentity(); // Reset The Current Modelview Matrix SwapBuffers(hDC); I created the dll and ran it inside a program made in a totaly different language and the window comes up for a bit of a second as it should be, then it seems it goes behind all the other windows and malfunctions... I do not want to have a loop in my dll code because then I can''t command it to do anything in my other program. 2) How do I get an already created window (in a seperate program) and turn it into an OpenGL window and interact with it? Does anyone know the answers? Thanks...
Advertisement
Can any one help?
Problem 1 is really holding me up.

Thanks...
Are you passing the current hDC to the dll?

That may well be the problem!

This topic is closed to new replies.

Advertisement