View Single Post

  #1 (permalink)  
Old 09-03-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Mappoint and a .Net Console App

I am trying to use Mappoint in a .Net Console app. I don't need to see the map, I just need mileage.

This is what I have

Dim objMap As New AxMapPoint.AxMappointControl()
objMap.NewMap(MapPoint.GeoMapRegion.geoMapNorthAme rica)

The latter command errors immediately with the following message:

"Exception of type InvalidActiveXStateException was thrown."

I have no other Mappoint related statements before this point.
Anyone have any thoughts on that?
Reply With Quote