Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • Last Modified:

Screen Saver Description

Hi

I have written a screen saver app. The only thing left is to get Windows to display the correct description in its dropdown list. When I go to Display Properties, Screen Saver, my screen saver is always displayed as its file name (excluding .scr).

For example, if my screen saver's file name is "HelloBob.scr" then it appears in Windows' list of screen savers as "HelloBob".

How can I give my screen saver a description that is different from its file name?  (Example: The "Beziers" screen saver's file name is actually "ssbeziers.scr".)

Thanks,
JB
0
JimBob091197
Asked:
JimBob091197
1 Solution
 
MannSoftCommented:
I was told to use:

{$D SCRNSAVE My Screen Saver Description}

But it doesnt seem to work on Win2k.  So either the person who told me that was wrong, or it only works on Win9x systems I guess.
0
 
TOndrejCommented:
http://community.borland.com/article/0,1410,26652,00.html says that it's enough to create a string resource with ID 1
0
 
TOndrejCommented:
http://www.wischik.com/scr/howtoscr.html says that the above is only for WinNT. According to the article, on Win9x you should use a long file name
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Mohammed NasmanSoftware DeveloperCommented:
maybe this link help

Coding Windows Screen Savers with Delphi.
http://delphi.about.com/cs/screensavers/index.htm
0
 
JimBob091197Author Commented:
Thanks everybody for your feedback.

To Mannsoft:

I have tried using {$D SCRNSAVE My Description} but it doesn't seem to work. Based on VC++ samples I found, I have also tried the following:

{$D SCRNSAVE 'My Descrip'}
{$D 'SCRNSAVE : My Descrip'}

None of these seem to work.


To TOndrej:

Thanks for the links. I am working on Win 2000, but have 98 at home, so I will test it later on 98. It appears that Win 95 (98?) & NT (2000?) work differently, which is a pity. I have considered using the file name as the description, but I would like a space in the file name and Delphi doesn't allow a space in your DPR name, which means that I have to keep renaming the screen saver every time I do a build.

I have tested it on Win 2000 and it does indeed work if you create a string resource 1 with a string of less than 25 chars. Also it only works if your screen saver file has 8 or less chars, and it must be lower case! Strange...


To Mnasman:

I had a brief look at the link you gave, but couldn't find anything about screen saver descriptions.


Thanks,
JB
0
 
JimBob091197Author Commented:
Thanks.
JB
0
 
TOndrejCommented:
Glad to help, thanks for the points
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now