Coder's Guild Mailing List

Re: Screen Saver Problem

Posted by Dan Nuffer on 1999-06-12

> "Please state the nature of the programming emergency: "  I'm trying
> to write a screen saver using Borland C/C++ 5.01 compiler.
>
> Whenever I try to run it, the linker gives me: "unresolved external
> 'DefScreenSaverProc()' accessed from ....."  It passes all the
> compiler tests, but fails the linker.

<extract from the MSDN>

The static screen saver functions are contained in the screen saver library.
There are two versions of the library available, Scrnsave.lib and
Scrnsavw.lib. You must link your project with one of these. Scrnsave.lib is
used for screen savers that use ANSI characters, and Scrnsavw.lib is used
for screen savers that use UNICODE characters. A screen saver that is linked
with Scrnsavw.lib will only run on Windows platforms that support UNICODE,
while a screen saver linked with Scrnsave.lib will run on any Windows
platform.

</extract from the MSDN>

so basically what you need to do is to add the correct library into your
linker options.

Dan Nuffer

To signoff go to http://www.giga.or.at/others/tcg/webinterface