Thread: How to create Screensavers?

  1. #1
    Interested Newbie
    Join Date
    Sep 2004
    Location
    Sweden
    Posts
    51

    How to create Screensavers?

    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?

  2. #2

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    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.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    I've done a screensaver that had none of these things. It didn't behave overly well, but it worked.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    The alternative approach I think CornedBee may be referring to (assuming windows) is perhaps described in How to write a 32bit screen saver.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  6. #6
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    You could also check out this screensaver framework.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't create child windows
    By OnionKnight in forum Windows Programming
    Replies: 4
    Last Post: 04-10-2011, 04:13 PM
  2. Cannot create shared memory
    By Phoenix_Rebirth in forum C Programming
    Replies: 3
    Last Post: 11-07-2008, 11:32 AM
  3. Create new combo boxes based on items selected in preview combo box
    By RealityFusion in forum Windows Programming
    Replies: 2
    Last Post: 01-10-2007, 09:50 AM
  4. Create a file from c++ program
    By Dan17 in forum C++ Programming
    Replies: 2
    Last Post: 05-08-2006, 04:25 PM
  5. How to Create reference to an array in C++
    By shiv_tech_quest in forum C++ Programming
    Replies: 2
    Last Post: 12-20-2002, 10:01 AM