NO

Author Topic: No preview in scrnsave.lib  (Read 6236 times)

Mikehg

  • Guest
No preview in scrnsave.lib
« on: November 15, 2005, 05:25:40 AM »
Hi Pelle,

scrnsave.lib does not appear to be handling preview mode. ScreenSaverProc doesn't appear to be called when the screensaver is invoked in preview mode. My test program works okay when compiled with VC++ or Watcom.  Is this a known issue?

Thanks,
Mike H.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
No preview in scrnsave.lib
« Reply #1 on: November 16, 2005, 06:49:27 PM »
No, I didn't know about this (no reports, and I havn't done much with screensavers in the last 5-6 years). I will look at it...

Pelle
/Pelle

Mikehg

  • Guest
No preview in scrnsave.lib
« Reply #2 on: November 18, 2005, 11:38:10 AM »
Thanks Pelle, I can post my test program if it would be of any help ?

Mike H.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
No preview in scrnsave.lib
« Reply #3 on: November 18, 2005, 07:09:43 PM »
It can't hurt - so please do. Thanks!

Pelle
/Pelle

Mikehg

  • Guest
No preview in scrnsave.lib
« Reply #4 on: November 19, 2005, 12:50:10 AM »
Hi Pelle,

I made a project and now have another little glitch. I define in the .rc file the screen saver name in  a Stringtable with an id of 1. When I compile and link from the command line the name in the stringtable shows up in the screensaver selection box. When compiled and linked through the IDE using the attached project file it does not show this name?

Maybe something not set correctly in the prj file?

Thanks,
Mike H.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
No preview in scrnsave.lib
« Reply #5 on: November 19, 2005, 10:45:55 PM »
Hello Mike,

Quote from: "Mikehg"
I made a project and now have another little glitch. I define in the .rc file the screen saver name in  a Stringtable with an id of 1. When I compile and link from the command line the name in the stringtable shows up in the screensaver selection box. When compiled and linked through the IDE using the attached project file it does not show this name?

I think the problem is that IDS_DESCRIPTION is defined in scrnsave.h with the value 1, but the IDE is also using the predefined symbols IDOK (also with the value 1) and IDCANCEL. Since scrnsave.h is included using < and >, I don't consider it to be a file containing identifiers, so IDOK will be used rather than IDS_DESCRIPTION. In my experience IDOK and IDCANCEL are nice to have in 95 percent of the cases, but sometimes they are harmful - I'm not sure how to solve it.

Attached are new screen saver libraries: scrensave.lib and scrnsavw.lib (new; Unicode). In the end it was easier to rewrite the whole thing. It seems to be working now...

Pelle
/Pelle

Mikehg

  • Guest
No preview in scrnsave.lib
« Reply #6 on: November 20, 2005, 02:03:44 AM »
Wow, that was quick! :-)

Appears to be working great now!

Thank you very much,

Mike H.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
No preview in scrnsave.lib
« Reply #7 on: November 21, 2005, 08:40:56 PM »
Very good - thanks.

Pelle
/Pelle