How to create Screensavers?

This is a discussion on How to create Screensavers? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Well how do you do your own screensavers, without using some awful software that you just load images into. I ...

  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
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    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,893
    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, 10: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, 08: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, 09:01 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21