FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Corrupt library: 'D:\fwh\lib\user32.lib'
Posts: 22
Joined: Mon May 19, 2008 08:54 PM
Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Wed Aug 26, 2009 12:48 PM
Hi Guys,

I have just updated for fwh 9.07 and xhb commercial april 09 and this error came up.

Code (fw): Select all Collapse
xLINK: fatal error: Corrupt library: 'D:\fwh\lib\user32.lib'.


Type: C >>>Couldn't build: sysfar.exe<<<
Type: C >>>TMAKEPROJECT<<<
Type: C >>>TMAKEPROJECT:REFRESH<<<
Type: N >>>      1411<<<


Some body could help me?!


Regards
regards,



Diego Imenes
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Wed Aug 26, 2009 12:54 PM
Regards



G. N. Rao.

Hyderabad, India
Posts: 22
Joined: Mon May 19, 2008 08:54 PM
Re: Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Wed Aug 26, 2009 01:16 PM
nageswaragunupudi wrote:Please see the thread
viewtopic.php?f=3&t=16294&p=84223&hilit=user32.lib#p84223


Thanks! I have already downloaded the file antonio asked for: http://www.fivetechsoft.com/files/prnwnd.lib

I included it in my project maker, but i`m still getting the same error.
regards,



Diego Imenes
Posts: 22
Joined: Mon May 19, 2008 08:54 PM
Re: Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Wed Aug 26, 2009 05:33 PM
I have already renamed prnwnd.lib to user32.lib or including this code that Antonio post in another thread

Code (fw): Select all Collapse
#pragma BEGINDUMP

#include <windows.h>

typedef BOOL ( FAR PASCAL * LPPRINTWINDOW )( HWND hWnd, HDC hDC, UINT nFlags );

BOOL WINAPI PrintWindow( HWND hWnd, HDC hDC, UINT uiFlags )
{
   LPPRINTWINDOW pPW;   
   HINSTANCE hDLL = LoadLibrary( "user32.dll" );
   BOOL bResult = FALSE; 

  if( hDLL )
  {
     pPW = ( LPPRINTWINDOW ) GetProcAddress( hDLL, "PrintWindow" );
     bResult = pPW( hWnd, hDC, uiFlags );
     FreeLibrary( hDLL );
  }
  
  return bResult;
}   

#pragma ENDDUMP


and both cases i got a new error:

Code (fw): Select all Collapse
Creating object: sysfar.EXP

Creating library: sysfar.LIB

xLINK: error: Unresolved external symbol '??2@YAPAXI@Z referenced from Fivehcm.lib(ACTX.obj)'.

xLINK: error: Unresolved external symbol '??3@YAXPAX@Z referenced from Fivehcm.lib(ACTX.obj)'.

xLINK: error: Unresolved external symbol '_HB_FUN_OLEINVOKE referenced from Fivehcm.lib(ACTX.obj)'.

xLINK: error: Unresolved external symbol '_HB_FUN_OLESETPROPERTY referenced from Fivehcm.lib(ACTX.obj)'.

xLINK: error: Unresolved external symbol '_HB_FUN_OLEGETPROPERTY referenced from Fivehcm.lib(ACTX.obj)'.

xLINK: error: Unresolved external symbol '_OleUIPasteSpecialA referenced from Fivehcm.lib(RICHEDIT.obj)'.

xLINK: error: Unresolved external symbol '_GetFileVersionInfoSizeA referenced from Fivehcm.lib(RICHEDIT.obj)'.

xLINK: error: Unresolved external symbol '_GetFileVersionInfoA referenced from Fivehcm.lib(RICHEDIT.obj)'.

xLINK: error: Unresolved external symbol '_VerQueryValueA referenced from Fivehcm.lib(RICHEDIT.obj)'.

xLINK: fatal error: 9 unresolved external(s).


Type: C >>>Couldn't build: sysfar.exe<<<
regards,



Diego Imenes
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Wed Aug 26, 2009 06:38 PM

Diego,

Please review this topic:

viewtopic.php?f=3t=15225start=0

The file to link is here:

www.fivetechsoft.com/files/xhb.obj

&&

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Wed Aug 26, 2009 06:41 PM

Also add this code to your app:

viewtopic.php?p=80134#p80134

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Wed Aug 26, 2009 06:43 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 22
Joined: Mon May 19, 2008 08:54 PM
Re: Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Wed Aug 26, 2009 07:38 PM
Antonio,

Thanks for all help!

I could compile with no errors!!

I use xhb( .com ) and sqllrdd and now all the operation in my system that open table is showing an error. Do u think i still have to do something with fwh or better show this error for xhb?

Code (fw): Select all Collapse
Erro BASE/1449  Syntax error: &
   Args:
     [   1] = C   {\\  }

Chamada de
===========
SR_WORKAREA:SQLOPENALLINDEXES(1404)
DBUSEAREA(0)
CLIENTE(1560)
MAIN(789)
regards,



Diego Imenes
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Wed Aug 26, 2009 09:09 PM

Diego,

I think you should report it to xHB.com as it does not seem to be related to FWH

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Thu Aug 27, 2009 02:58 AM

I have observed that in FWH 9.07, if we do not use RibbonBar, we need not include user32.lib. Probably this is a simpler solution if the application does not use RibbonBar

Regards



G. N. Rao.

Hyderabad, India
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Thu Aug 27, 2009 05:07 AM

Rao,

In FWH 9.08 it is no longer needed :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Corrupt library: 'D:\fwh\lib\user32.lib'
Posted: Thu Aug 27, 2009 05:11 AM
Antonio Linares wrote:Rao,

In FWH 9.08 it is no longer needed :-)

Yes
I have seen that. Thanks for the modification
The above tip is for users of FWH 907
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion