I would say GetDesktopWindow() is extremely unlikely to work. I would expect that to be unlike a normal window and the value you receive to be a special handle value. If push comes to shove, just open a window without WS_VISIBLE.
No one will be the wiser. P.s. I note you're making this a console application.
I will be quite surprised if console applications work with anything graphical, be it OpenGL or just the Windows 2D drawing API. P.s. S I'm pretty sure Windows applications can write (one way or another) to the stdout of the command line they're run from.
You could simply write a normal windows app, but just emit your output to stdout.
Yes, it does work with CreateWindowEx which I'm using instead of non-Ex. That is what I'm doing now - I'm setting up everything as I should if I would to show up a window - only that I omit ShowWindow function. I would like to bypass all of that if possible - and it must be.
– Keyframe Apr 3 '09 at 17:37.
One must not create a OpenGL context on the desktop window. To create a OpenGL context, one must set the windows's pixelformat, which is strictly forbidden to be done on the desktop window. If you want to do offscreen rendering, use a PBuffer instead of a window, or create a window you don't make visible and use a Frame Buffer Object (FBO) as render target.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.