Problem with FwH 9.04 while building application

Problem with FwH 9.04 while building application

Postby driessen » Fri Apr 10, 2009 9: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: Select all  Expand view
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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Problem with FwH 9.04 while building application

Postby carlos vargas » 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)
User avatar
carlos vargas
 
Posts: 1720
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: Problem with FwH 9.04 while building application

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem with FwH 9.04 while building application

Postby driessen » Sat Apr 11, 2009 4: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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Problem with FwH 9.04 while building application

Postby Antonio Linares » Sat Apr 11, 2009 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem with FwH 9.04 while building application

Postby PeterHarmes » Thu Apr 30, 2009 3: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
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Problem with FwH 9.04 while building application

Postby Antonio Linares » Fri May 01, 2009 7:18 am

Peter,

Please use the Class TActiveX posted in this topic:

viewtopic.php?f=3&t=15314

Thanks,
regards, saludos

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

Re: Problem with FwH 9.04 while building application

Postby Antonio Linares » Fri May 01, 2009 7:30 am

Peter,

Or you can add these functions, in case that you need those funtions for backwards compatibility:
Code: Select all  Expand view
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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem with FwH 9.04 while building application

Postby PeterHarmes » Fri May 01, 2009 8: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
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Problem with FwH 9.04 while building application

Postby Antonio Linares » Fri May 01, 2009 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem with FwH 9.04 while building application

Postby PeterHarmes » Tue May 05, 2009 8:53 am

Thanks Antonio,

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

Pete
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 42 guests