Page 1 of 1

Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Wed Aug 26, 2009 12:48 pm
by dempty
Hi Guys,

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

Code: Select all | Expand


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

Re: Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Wed Aug 26, 2009 12:54 pm
by nageswaragunupudi

Re: Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Wed Aug 26, 2009 1:16 pm
by dempty
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.

Re: Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Wed Aug 26, 2009 5:33 pm
by dempty
I have already renamed prnwnd.lib to user32.lib or including this code that Antonio post in another thread

Code: Select all | Expand


#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: Select all | Expand


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<<<

Re: Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Wed Aug 26, 2009 6:38 pm
by Antonio Linares
Diego,

Please review this topic:
viewtopic.php?f=3&t=15225&start=0

The file to link is here:
www.fivetechsoft.com/files/xhb.obj

Re: Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Wed Aug 26, 2009 6:41 pm
by Antonio Linares
Also add this code to your app:
viewtopic.php?p=80134#p80134

Re: Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Wed Aug 26, 2009 6:43 pm
by Antonio Linares

Re: Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Wed Aug 26, 2009 7:38 pm
by dempty
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: Select all | Expand


Erro BASE/1449  Syntax error: &
   Args:
     [   1] = C   {\\  }

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

Re: Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Wed Aug 26, 2009 9:09 pm
by Antonio Linares
Diego,

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

Re: Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Thu Aug 27, 2009 2:58 am
by nageswaragunupudi
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

Re: Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Thu Aug 27, 2009 5:07 am
by Antonio Linares
Rao,

In FWH 9.08 it is no longer needed :-)

Re: Corrupt library: 'D:\fwh\lib\user32.lib'

Posted: Thu Aug 27, 2009 5:11 am
by nageswaragunupudi
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