FWH & ActiveX
Posted: 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
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