FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with FwH 9.04 while building application
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Problem with FwH 9.04 while building application
Posted: Fri Apr 10, 2009 09:22 PM
Hello,

I downloaded FwH 9.04 today.

After installing this new version, I tried to rebuild my application by using xHarbour Builder, but I got an error which says :
Code (fw): Select all Collapse
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: fatal error: 2 unresolved external(s).


Does anyone know what's wrong ?

Thanks a lot in advance.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Problem with FwH 9.04 while building application
Posted: Fri Apr 10, 2009 10:37 PM

In Spanish Forums, I "Carlos Vargas" ask to Antonio Linares for this message, he put in a mediafire a obj file to attach, this obj contains the reference function.

search for a message from yesterday.

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with FwH 9.04 while building application
Posted: Fri Apr 10, 2009 10:45 PM

Michel,

You have to link this xhb.obj:

http://www.mediafire.com/?sharekey=414c ... 6e282a0ee8

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem with FwH 9.04 while building application
Posted: Sat Apr 11, 2009 04:27 PM

Antonio,

Thanks for your help.

Your solution did the job.

Where is this xhb.obj for ?

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with FwH 9.04 while building application
Posted: Sat Apr 11, 2009 07:44 PM

Michel,

> Where is this xhb.obj for ?

PellesC (renamed and used from xHB builder) does not support C++, so we need to supply the equivalents for C++ new and delete operators.

xhb.obj provides them.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: Problem with FwH 9.04 while building application
Posted: Thu Apr 30, 2009 03:17 PM

Hi,

I was getting the same problem as above, but i'm also getting the following unresolved external symbol errors when compiling - any ideas:

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)'.

Thanks in advance

Pete

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with FwH 9.04 while building application
Posted: Fri May 01, 2009 07:18 AM

Peter,

Please use the Class TActiveX posted in this topic:

viewtopic.php?f=3t=15314

Thanks,

&

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with FwH 9.04 while building application
Posted: Fri May 01, 2009 07:30 AM
Peter,

Or you can add these functions, in case that you need those funtions for backwards compatibility:
Code (fw): Select all Collapse
function OleInvoke( hObj, cMethod, ... )

#ifndef __XHARBOUR__
   return __ObjSendMsg( TOleAuto():New( hObj ), cMethod, ... )
#else   
   local aParams := hb_aParams()

   aParams[ 1 ] = TOleAuto():New( hObj )

   return hb_execFromArray( @__ObjSendMsg(), aParams )   
#endif 

function OleSetProperty( hObj, cPropName, uValue )

return __ObjSendMsg( TOleAuto():New( hObj ), "_" + cPropName, uValue )

function OleGetProperty( hObj, cPropName )

return __ObjSendMsg( TOleAuto():New( hObj ), cPropName )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: Problem with FwH 9.04 while building application
Posted: Fri May 01, 2009 08:42 AM

Antonio,

Where do i put those functions? I've tried putting them in activex.prg & one of my apps common program file but get the following error:

\5.00\Source\Common\COMMON.PRG(18) Error E0030 Syntax error: "syntax error at '...'"

\5.00\Source\Common\COMMON.PRG(23) Error E0001 Statement not allowed outside of procedure or function

\5.00\Source\Common\COMMON.PRG(25) Error E0001 Statement not allowed outside of procedure or function

\5.00\Source\Common\COMMON.PRG(27) Error E0001 Statement not allowed outside of procedure or function

Line 18 is function OleInvoke( hObj, cMethod, ... )

Thanks

Pete

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with FwH 9.04 while building application
Posted: Fri May 01, 2009 08:19 PM

Pete,

> Line 18 is function OleInvoke( hObj, cMethod, ... )

You need an updated xHarbour version that supports "..." syntax

If you are not going to use those functions, please replace "..." with uParam

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: Problem with FwH 9.04 while building application
Posted: Tue May 05, 2009 08:53 AM

Thanks Antonio,

My app has built and looks like it's running fine :)

Pete

Continue the discussion