Page 1 of 1
mapi
Posted: Tue Jun 13, 2006 8:05 pm
by Detlef Hoefner
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
Posted: Tue Jun 13, 2006 8:58 pm
by Detlef Hoefner
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
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
Posted: Tue Jun 13, 2006 9:16 pm
by Antonio Linares
Detlef,
You may implement this function in your code:
Code: Select all
#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
Posted: Tue Jun 13, 2006 9:27 pm
by Detlef Hoefner
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
Posted: Wed Jun 14, 2006 7:05 am
by Antonio Linares
Detlef,
What xHB Builder version/build are you using ? Same question for FWH. Thanks,
Posted: Wed Jun 14, 2006 7:11 am
by Detlef Hoefner
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
Posted: Wed Jun 14, 2006 7:37 am
by Antonio Linares
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.