Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

trouble with win32 lib's

1 view
Skip to first unread message

Broaf Oaf

unread,
May 22, 2001, 1:31:38 PM5/22/01
to
i have borland c++ 5.02 and the accompanying ide, and i'm having a problem
with lib's... i'm working on making a windows screen saver, so i'm trying
to call DefScreenSaverProc().. trouble is that my ide didn't come with the
scrnsave.lib file, so i got the win32 sdk from microsoft and downloaded the
lib.. now when i link to it, i get the following linker error:

Error: 'scrnsave.lib' contains invalid OMF record, type 0x21

i also tried using coff2omf, although i'm not sure if that's the program i
need, and i don't know anything about coff's or omf's, so i don't know how
to use it, but i couldn't solve anything with it...

anyone have any suggestions?

Trevor Smith

unread,
Jun 28, 2001, 8:56:09 AM6/28/01
to
Hi Oaf,
I have had similar problems using the libraries supplied by
microsoft. Apparently they use a new format for their libraries which is
compatible with the Visual studio programs and, of course, not backward
compatible or compatible with borland either.

One way I found around this problem is a utility which comes with borland,
which will scan the dll for exports and create a new lib file which you can use

to link. Unfortunately I connot remember the name of the utility, because I
have since crossed over to Visual C++. However you will find it in your borland

Bin folder and it is named something like libgen.exe or something along those
lines. It is a command line tool which accepts /? for help, so you should be
able to track it down.


I hope this helps you out. If you need further assistance, give me
an email, always glad to help a fellow programmer.


Regards
Trevor Smith


0 new messages