FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour mapi
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
mapi
Posted: Tue Jun 13, 2006 08:05 PM

Hi all,

When using tMail class as in FWH 2.7 sample james.prg with xHB Builder i get the following errors:

xLINK: error: Unresolved external symbol '_HB_FUN_MAPILOGOFF'.
xLINK: error: Unresolved external symbol '_HB_FUN_MAPISENDMAIL'.
xLINK: fatal error: 2 unresolved external(s).

Do i miss some libraries?

Best reagards,
Detlef

Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
mapi
Posted: Tue Jun 13, 2006 08:58 PM

Sorry for bothering you all.

I forgot to set the xHbBuilder to the fwh 2.7 folders and i was using my old files of fwh 2.5 :oops:

But anyhow with the actual 2.7 files i got an error
xLINK: error: Unresolved external symbol '_hb_dynsymSymbol'.

So i thought it might be good to build the fivehmx.lib new.

After this i now get
xLINK: error: Unresolved external symbol '_hb_dynsymSymbol'.
xLINK: error: Unresolved external symbol '_HB_FUN_TREBAR'.
xLINK: error: Unresolved external symbol '_HB_FUN_TTOOLBAR'.
xLINK: fatal error: 3 unresolved external(s).

Could anybody give me a hint?
Thanks and regards,
Detlef

:cry:

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
mapi
Posted: Tue Jun 13, 2006 09:16 PM
Detlef,

You may implement this function in your code:
#pragma BEGINDUMP 

#include "hbapi.h" 
#include "hbapiitm.h" 

PHB_SYMB hb_dynsymSymbol( PHB_DYNS pDynSym ) 
{ 
return pDynSym->pSymbol; 
}

For TReBar and TToolBar, you need to compile and include in FWH lib source\classes\rebar.prg and source\classes\toolbar.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
mapi
Posted: Tue Jun 13, 2006 09:27 PM

Antonio,

thanks for your quick reply.
In the meanwhile i reinstalled the original fwh 2.7.
And i placed the hb_dynsymSymbol code into my prg file.

Now xLink doesn't complain but my app immediately crashes at start without showing a msginfo() which i placed at top of my code.

Any help is very much appreciated.

Regards,
Detlef

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
mapi
Posted: Wed Jun 14, 2006 07:05 AM

Detlef,

What xHB Builder version/build are you using ? Same question for FWH. Thanks,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
mapi
Posted: Wed Jun 14, 2006 07:11 AM

Ok, i found it.

The file fivehmx.lib.xbp provided from xHarbour.com is a little outdated.
You need to add toolbar.prg and rebar.prg to the list of source files and rebuild fivehmx.lib.

After this everything works ok.
But i still need to add the 'hb_dynsymSymbol' code to my program.

Regards,
Detlef

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
mapi
Posted: Wed Jun 14, 2006 07:37 AM

Detlef,

Glad to know it is working fine :)

> But i still need to add the 'hb_dynsymSymbol' code to my program.

Yes, it is needed, though suposedly its going to be added to xharbour soon.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion