Pelles C forum
Pelles C => Bug reports => Topic started by: Mikehg 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.
-
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
-
Thanks Pelle, I can post my test program if it would be of any help ?
Mike H.
-
It can't hurt - so please do. Thanks!
Pelle
-
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.
-
Hello Mike,
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
-
Wow, that was quick! :-)
Appears to be working great now!
Thank you very much,
Mike H.
-
Very good - thanks.
Pelle