Page 1 of 1

Problem with webexp.prg in fwh march 2006

Posted: Fri Mar 03, 2006 2:54 am
by AlexSchaft
Hi,

I get the following unresolved externals:

xLINK: error: Unresolved external symbol '_HB_FUN_OLEGETPROPERTY'.

xLINK: error: Unresolved external symbol '_HB_FUN_OLESETPROPERTY'.

xLINK: error: Unresolved external symbol '_HB_FUN_OLEINVOKE'.

xLINK: error: Unresolved external symbol '??2@YAPAXI@Z'.

xLINK: error: Unresolved external symbol '??3@YAXPAX@Z'.

This is the link cmd used by Xhb:

xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"C:\xHB\lib" -LIBPATH:"C:\xHB\c_lib" -LIBPATH:"C:\xHB\c_lib\win" -LIBPATH:"C:\fwh\lib" "webexp.obj" "activex.obj" FiveHCM.lib FiveHMX.lib OptG.lib xhb.lib dbf.lib ntx.lib cdx.lib rmdbfcdx.lib activex.lib crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"webexp.exe"

Should this be changed?

Posted: Fri Mar 03, 2006 9:20 am
by Antonio Linares
Alex,

In whatsnew.txt is explained (some months ago) that to use ActiveX with xharbour these changes are required:

IMPORTANT: In order to use ActiveX with xHarbour, you must do the
following: tlib.exe fivehc.lib - ole.obj

If you are using xharbour.com then:
(Microsoft) LIB.exe /REMOVE:ole.obj fivehcm.lib

The reason of this is because fivehc.lib and fivehcm.lib work with both Harbour and xharbour.

Posted: Fri Mar 03, 2006 10:48 am
by Gianni
I'm using xHarbour.com and still have same problem as Alex
I execute this command but take this error:

Code: Select all

LIB.exe /REMOVE:ole.obj c:\fivewin\lib\fivehcm.lib
Microsoft (R) Library Manager Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved

LIB : warning LNK4014: cannot find member object ole.obj
Regards
Gianni

Posted: Fri Mar 03, 2006 4:58 pm
by Gianni
any news?

regards
Gianni

Posted: Fri Mar 03, 2006 7:04 pm
by Antonio Linares
We are reviewing it

Posted: Fri Mar 03, 2006 10:02 pm
by Antonio Linares
Alex, Gianni,

Fixed. Please download FWH.exe again. Thanks,

Posted: Sat Mar 04, 2006 7:34 am
by Richard Chidiak
Antonio Linares wrote:Alex, Gianni,

Fixed. Please download FWH.exe again. Thanks,
:(
Antonio

Can you clarify this a bit more please ?

Do we have to remove the ole.obj from fw library for Activex or any Ole related to xharbour. Many of us use Ole with word, excel , etc...
What is the correct behaviour ?

Thank you

Richard

Posted: Sat Mar 04, 2006 12:09 pm
by Antonio Linares
Richard,

No, there is no need to remove anything at all :)

FWH works fine with Harbour, xHarbour and xHB.

Posted: Sat Mar 04, 2006 3:34 pm
by Gianni
Many thanks but I still ave 2 error:

Code: Select all


Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"C:\xHB\lib" -LIBPATH:"C:\xHB\c_lib" -LIBPATH:"C:\xHB\c_lib\win"  -LIBPATH:"C:\fivewin\lib" "webexp2.obj" FiveHCM.lib FiveHMX.lib OptG.lib xhb.lib dbf.lib ntx.lib cdx.lib rmdbfcdx.lib activex.lib crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"webexp.exe"<<<

xLINK: error: Unresolved external symbol '??2@YAPAXI@Z'.

xLINK: error: Unresolved external symbol '??3@YAXPAX@Z'.

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


Type: C >>>Couldn't build: webexp.exe<<<
Type: C >>>TMAKEPROJECT<<<
Type: C >>>TMAKEPROJECT:REFRESH<<<
Type: N >>>      1266<<<


Posted: Sat Mar 04, 2006 4:25 pm
by Antonio Linares
Alex, Gianni,

Fixed! :D

Please link this OBJ from xHB:
http://hyperupload.com/download/f2f7d320/test.obj.html