9.07 - Corrupt User32.lib

9.07 - Corrupt User32.lib

Postby TimStone » Tue Aug 04, 2009 4:19 pm

I tried to use 9.07, but I'm getting an error message on the build that says Corrupt Library c:\fwh\lib\user32.lib.

I see this is a new addition to the lib files in 9.07. I redownloaded the install this morning and placed it in a new folder, and received the same error.

user32.lib is not called specifically in my link script. I'm not sure what tries to link it .

I am using xHarbour ( .com ) release that was fine with 9.06. :shock:

Thanks.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: 9.07 - Corrupt User32.lib

Postby nageswaragunupudi » Tue Aug 04, 2009 8:52 pm

I think this user32.lib is only for Borland.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: 9.07 - Corrupt User32.lib

Postby TimStone » Tue Aug 04, 2009 9:06 pm

Here is the problem. User32.lib is in xHb's c-lib folder. The one supplied with FWH apparently was searched first and, as you suggest, must be a Borland ( thus imcompatible ) file.

I removed the file from the FWH\lib folder and can now build my application.

So, here is the question for Antonio. Why the new .lib file, and is there something in there I need for 9.07 that is not in the xHb file ? If so, do you have a xHB / xCC compatible copy ?
Thanks.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: 9.07 - Corrupt User32.lib

Postby Antonio Linares » Tue Aug 04, 2009 11:23 pm

Tim,

Please use this library:
www.fivetechsoft.com/files/prnwnd.lib
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: 9.07 - Corrupt User32.lib

Postby TimStone » Tue Aug 04, 2009 11:54 pm

Do I keep User32.lib in the FWH lib folder where xHB will still try to link it in , or is this a replacement.

Thank you.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: 9.07 - Corrupt User32.lib

Postby Antonio Linares » Wed Aug 05, 2009 12:56 am

Tim,

It is a replacement for FWH user32.lib for xHB users
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: 9.07 - Corrupt User32.lib

Postby TimStone » Wed Aug 05, 2009 4:46 am

Antonio,

I still get the message that user32.lib is corrupt if I allow it to use the one from FWH. Is it possible this one is built with a compiler not compatible with xCC ( xHB Builder compiler ) ? I downloaded the file twice and have the same problem.

If I take it out of the lib folder, then xHb uses its own file with no problem.

I am using the June xHB build. It is supposed to be pretty good.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: 9.07 - Corrupt User32.lib

Postby Antonio Linares » Wed Aug 05, 2009 5:53 am

Tim,

FWH user32.lib is OMF format (Borland) and both Microsoft and PellesC use COFF format, thats why PellesC reports it to you as corrupted.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: 9.07 - Corrupt User32.lib

Postby TimStone » Wed Aug 05, 2009 3:40 pm

Antonio,

I'm confused. You want me to use it, but I can't because its the wrong format and will not link in to the application. Do you have one that is compatible with Microsoft / Pelles ? If not, what features do we lose by using the xHB User32.lib ?

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: 9.07 - Corrupt User32.lib

Postby Antonio Linares » Wed Aug 05, 2009 6:11 pm

Tim,

This is the equivalent one for Microsoft and PellesC:

http://www.fivetechsoft.com/files/prnwnd.lib

This library is not a replacement for user32.lib. It just includes a missing import function.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: 9.07 - Corrupt User32.lib

Postby Antonio Linares » Wed Aug 05, 2009 6:15 pm

In FWH 9.07 we use Windows API PrintWindow() function (provided from user32.dll) but we have found that most C compilers don't provide it in their user32.lib

So our library is a complement for their user32.lib, not a replacement :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: 9.07 - Corrupt User32.lib

Postby TimStone » Wed Aug 05, 2009 6:30 pm

Thank you. So I use the one with xBuilder ( Pelles ) and the file you asked me to download ! GOT IT ! Thanks.

Here is a request. In several replies you have noted extra libraries that we should now be using, but if we don't happen to read that thread, we miss the info. Could you possibly start a "sticky thread" ( stays at the top ) that lists the libraries we should download, their links, and a brief description of what they do in FWH ? I think that would be very helpful, and probably eliminate a lot of questions.

Thanks for all the ongoing work and support.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: 9.07 - Corrupt User32.lib

Postby Antonio Linares » Wed Aug 05, 2009 7:37 pm

Tim,

Yes, thats a very good idea. We are going to organize it.

Anyhow if the user32.lib causes much troubles to FWH users (same question asked again and again) then we may modify our code to call PrintWindow() dynamically, so there will be no need to use this extra import library.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 86 guests