mapi

mapi

Postby Detlef Hoefner » Tue Jun 13, 2006 8: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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby Detlef Hoefner » Tue Jun 13, 2006 8: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).
:cry:

Could anybody give me a hint?
Thanks and regards,
Detlef
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby Antonio Linares » Tue Jun 13, 2006 9:16 pm

Detlef,

You may implement this function in your code:
Code: Select all  Expand view
#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
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Detlef Hoefner » Tue Jun 13, 2006 9: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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby Antonio Linares » Wed Jun 14, 2006 7:05 am

Detlef,

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

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

Postby Detlef Hoefner » Wed Jun 14, 2006 7: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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests