How to make a screensaver for windows 7 c++

user1533320 picture user1533320 · Aug 26, 2012 · Viewed 10k times · Source

I realize the above is not so much a specific question, and I have no code to speak of, but I feel that others also have been unable to accomplish this feat - it strikes me as one of those problems where case can be everything.

So here lies my problem. I have made the screensaver, per say, of what actually runs. Essentially what I want to do is, make it run, by itself, off the timer... and perhaps some of the associated preview window features, because we need to get it selected. Problem is, either the resources regarding this are scare, by case, or my Google-fu is just not working today. (virtually all screensaver tagged questions I found on SO were about users who either knew how to make a screensaver, or those who wanted to not make one but check on one, i.e if it started running during program execution.

Some info: Trying to make it for windows 7 (using windows 7 if it matters) using C++.

What I am asking is, how to get from my current point, where I have a normal program (i.e, start in main, do some graphics...) which loops fine by itself, but I am trying to figure out, how to make it an actual screensaver - which, unfortunately, cannot be solved simply by renaming it .scr.

Thanks if you can provide any information.

PS: I am pretty new here, and don't know to much about most things, including using SO. My last question was downvoted (I will admit, it was bad), and I am now determined to ask good questions.

Answer

Nicolas Brown picture Nicolas Brown · Aug 26, 2012

this should help: http://www.cityintherain.com/howtoscr.html

and another (with downloadable example code) http://www.codeguru.com/cpp/g-m/opengl/article.php/c2695/OpenGL-screen-savers.htm

i hope you're familiar with the win32 api