Home > Articles > Programming > Visual Basic

📄 Contents

  1. Creating the Animation
  2. Compiling and Distribution
  • Print
  • + Share This
From the author of

Compiling and Distribution

  1. When you compile your screen saver project, make sure that you put a .scr extension behind it. This is how Windows knows to treat your program as a Windows screen saver. To do this, choose the Make Snowman.exe option from the File menu. When the Make Project dialog opens, change the name of the .exe to Snowman.scr (see Figure 1).

    Figure 1 The Make Project dialog box.

  2. To distribute your screen saver to other users, you need to distribute DirectX8, all .bmp files, and your compiled .scr file. You might also need some supporting VB files, depending on which ones you use in your project. Place the .scr file and its supporting graphics in the Windows\system32 or WinNT\System32 folder.

  3. To launch your screen saver, go to the Display Properties dialog. Choose the Screen Saver tab and select the Snowman screen saver from the drop-down list.

    Figure 2 The Display Properties dialog box.

The full source code for this project can be found here. I hope you've enjoyed this project, and I look forward to seeing more DirectX screen savers out there.

  • + Share This
  • 🔖 Save To Your Account