J.C. Coelho

Hi there,

I'm trying to finish up a screen saver I wrote in C# using the GDI+ and .net 2.0.
I have a few last things to go, the main one being adding a resource that shows up in
"Display Properties" > "Screensaver" as the screen saver name.

I know that with Win32 you simply add a string resource that reads something like
STRINGTABLE DISCARDABLE
BEGIN
IDS_DESCRIPTION "MySaver"
END

I've had this one work before with C. This time round it's C# (!)
So I tried going to the resource designer and adding a string named
"IDS_DESCRIPTION " with a value of 1 and a comment like "MySaver"

This gives me a blank entry in the "Display Properties" > "Screensaver" as the screen saver name.
Somehow I feel I'm close but missing something altogether.
Can someone please help



Re: Visual C# Language Screensaver Description String

J.C. Coelho

Ok there's no need for a string resource if you can use spaces in the file name
Will spaces in the file name work in Windows 98

There's no way to accomplish this in C# without writing XML code

There's no way to accomplish this in C# writing XML code
Would love to hear something ( )





Re: Visual C# Language Screensaver Description String

Vojta

I have similar problem.

When I use long file name for screen saver SCR file and I choose this screen saver in dialog box then windows store short file name (8.3) with tilda (~) to registry and use this short name for launching screen saver.

The problem is that I have config file (with same file name + ".config" suffix) and .NET framework cannot find this configuration file. So now I am using shot file name, everything works fine, but user sees only short name without spaces.

Does anybody know how to have short name for .scr file and long name for user

Thanks