PDA

View Full Version : How to create Screensavers?



Tynnhammar
12-10-2004, 03:34 AM
Well how do you do your own screensavers, without using some awful software that you just load images into. I have a couple of exe's I want create screensavers from.

Is this possible? If so, how?

Fordy
12-10-2004, 04:05 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/scrnsave.asp

adrianxw
12-10-2004, 04:24 AM
A Windows screensaver does not have a WinMain() rather it uses ScreenSaverProc(). It should also contain ScreenSaverConfigureDialog() and RegisterDialogClasses() although both of these routines can be simple placeholders.

It is also necessary for all screensavers to have a special icon resource and a string for it's title, (24 characters max), used in the control panel. If you have not got any of these things, it will not work. There is more you can do, but these things you must do.

MSDN as suggested already, contains all the info you need.

CornedBee
12-10-2004, 05:35 AM
I've done a screensaver that had none of these things. It didn't behave overly well, but it worked.

Ken Fitlike
12-10-2004, 06:22 AM
The alternative approach I think CornedBee may be referring to (assuming windows) is perhaps described in How to write a 32bit screen saver (http://www.wischik.com/scr/howtoscr.html).

anonytmouse
12-10-2004, 06:39 AM
You could also check out this screensaver framework (http://cboard.cprogramming.com/showthread.php?t=51630).