• Advertisement

Archived

This topic is now archived and is closed to further replies.

2 Questions

This topic is 5909 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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...

Share this post


Link to post
Share on other sites
Advertisement
Are you passing the current hDC to the dll?

That may well be the problem!

Share this post


Link to post
Share on other sites

  • Advertisement