I have an application in C# that I want to implement the MapPoint 2010
object model with.
I have added the reference to "Microsoft MapPoint 17.0 Object Library (North
America)".
when I do this: MapPoint.Application MPApp = new MapPoint.Application();
I get this: Cannot create an instance of the abstract class or interface
'MapPoint.Application'.
From other web sites that provide samples in C#, they all use the line above
just as I have it. I'm not sure what I am doing wrong here. Is there an SDK
or something I am missing that I need to install? I only have the MapPoint
2010 software installed. I didn't see any SDK for it.
Thanks,
It's a work around for me (I really preferred to use the application itself
instead of using the control in my application) but if it works..
Here are the using statements from one of my MapPoint add-ins (yes it
works with MapPoint 2010!):
using System;
using System.Runtime.InteropServices;
using System.ComponentModel;
using MapPoint = Interop.MapPoint;
using System.Windows.Forms;
--
Richard Marsden
Winwaed Software Technology LLC
http://www.winwaed.com
Tools and Add-ins for MapPoint - http://www.mapping-tools.com
The Geoweb Guru: http://www.geowebguru.com
Quilnux wrote:
> Hello,
>
> I have an application in C# that I want to implement the MapPoint 2010
> object model with.
>
> I have added the reference to "Microsoft MapPoint 17.0 Object Library
> (North America)".
>
> when I do this: MapPoint.Application MPApp = new
> MapPoint.Application();
>
> I get this: Cannot create an instance of the abstract class or
> interface 'MapPoint.Application'.
Same here. Doesn't work for me either using VB6.
I always get an error message similar to "The libary was not registered
correctly. Please reinstall."
(Which I did 2 times.)
Sascha