PDA

View Full Version : Help file says MapPointCtl, it doesn't exist



JPeters
07-31-2002, 04:14 PM
Trying to manipulate the MapPoint Control 9.0 that came with MP2002. Help file says to use MapPointCtl library. Ie:

Sub Form_Load()

Dim objMap As MappointCtl.Map

'Use the default North American Map
Set objMap = MPC.NewMap(geoMapNorthAmerica)

End Sub

I'm getting an error. MapPointCtl doesn't exist. SO I can't use it. I have MapPoint and MapPointUtilities. I've tried getting around this with MapPoint.APplication, but I don't want MapPoint to open outside of my application, I need this to work with the ActiveX Contorl embeded within my form. Any ideas?

-Josh

John Meyer
08-02-2002, 02:05 PM
Josh,

The only thing I see is the name of the ActiveX Control. When you drag the control on to your form default the name will be MappointControl1. if you did not change the control name to "MPC" then that would explain the problem. Either change the control name to "MPC" or change the code to: Set objMap = MappointControl1.NewMap(geoMapNorthAmerica)


Trying to manipulate the MapPoint Control 9.0 that came with MP2002. Help file says to use MapPointCtl library. Ie:

Sub Form_Load()

Dim objMap As MappointCtl.Map

'Use the default North American Map
Set objMap = MPC.NewMap(geoMapNorthAmerica)

End Sub

I'm getting an error. MapPointCtl doesn't exist. SO I can't use it. I have MapPoint and MapPointUtilities. I've tried getting around this with MapPoint.APplication, but I don't want MapPoint to open outside of my application, I need this to work with the ActiveX Contorl embeded within my form. Any ideas?

-Josh

JPeters
08-02-2002, 02:16 PM
John,
Actually - I did change the name to MPC. I've tried it as MPC and as MapPointControl1. This has been plaguing me for over a week now. I installed my copy of VB and now I'm going through Microsoft's programmed examples and seeing if they work .. and why theirs will and mine wont. Doing this soon as I can. I'll post with updates.


-Josh