FWH & ActiveX

FWH & ActiveX

Postby Randal » Thu Apr 20, 2006 9:11 pm

All,

I'm trying to use ActiveX with Mappoint and get the following error:

Error description: Error MapPoint.Control/16389 E_FAIL: NEWMAP
Args:
[ 1] = N 1

How can I debug this? The following is my code:

DEFINE WINDOW oWndMap OF oWnd ;
FROM 0,0 TO 0,0 ;
MDICHILD ;
MENU MapMenu(oWndMap) ;
TITLE "Map Point"

oMapPoint = TActiveX():New( oWndMap, "MapPoint.Control" )

oWndMap:oClient = oMapPoint // To fill the entire window surface

// Get an error here!
oMapPoint:NewMap(1)

ACTIVATE WINDOW oWndMap ;
ON INIT ( oWndMap:Move(0,0,640,390,.t.) ) ;
ON PAINT oWndMap:SetFocus() ;
VALID ( oMapPoint:Close(), .T. )

Using FWH March 2006 and xBuilder latest version. I removed ole.obj from fivehc.lib per the whatsnew instructions. What am I doing wrong?

Thanks,
Randal Ferguson
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm

Postby VeRCE » Thu Apr 20, 2006 9:18 pm

You must try :


oMapPoint:Do( "NewMap", 1 )
Juan Carlos Salinas Ojeda
México. D.F.
-------------------------------------------------
User avatar
VeRCE
 
Posts: 219
Joined: Fri Nov 04, 2005 2:34 pm
Location: Mexico D.F.

Postby Antonio Linares » Fri Apr 21, 2006 10:37 am

Randal,

Please replace xHB ActiveX.lib with this one:
http://hyperupload.com/download/02d7a0b ... X.lib.html

and do as Juan Carlos has told you.
regards, saludos

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

Postby Randal » Fri Apr 21, 2006 1:31 pm

Antonio,

I replaced ActiveX.lib now I get a linker error:

xLINK: error: Unresolved external symbol '??2@YAPAXI@Z'.

xLINK: error: Unresolved external symbol '??3@YAXPAX@Z'.

xLINK: fatal error: 2 unresolved external(s).

I'm using xBuilder w/xcc.

Thanks,
Randal Ferguson
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm

Postby Randal » Fri Apr 21, 2006 4:57 pm

Antonio,

Is the problem link problem because Fwh+ActiveX does not work with xBuilder/Xcc?

Thanks,
Randal Ferguson
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm

Postby Antonio Linares » Fri Apr 21, 2006 4:59 pm

Randal,

We email you the FWH libs with a little recent change we implemented.

Fwh+ActiveX properly works with xBuilder/Xcc :)
regards, saludos

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

Postby Randal » Fri Apr 21, 2006 9:42 pm

Antonio,

Thanks for the email. I'm getting the windows message "yourapp.exe has encountered a problem and needs to close".

In an effort to track this down I simply modifed the webexp.prg sample and compiled using harbour and borland. When I try to run the program nothing happens. I'm beginning to wonder if there is something wrong with my installation of MapPoint 2004 (I tried reinstalling it). I'm going to try installing MapPoint 2002 this weekend and I'll let you know how I make out. Thanks for all your help.

Best Regards,
Randal Ferguson
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Otto and 64 guests