mapi

Post Reply
User avatar
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

mapi

Post 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
User avatar
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

Post 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 :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).
:cry:

Could anybody give me a hint?
Thanks and regards,
Detlef
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

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

Post by Antonio Linares »

Detlef,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

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

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply