Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MapPoint object model with C#

26 views
Skip to first unread message

Quilnux

unread,
Dec 11, 2009, 8:30:01 PM12/11/09
to
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'.

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,

Quilnux

unread,
Dec 11, 2009, 10:12:01 PM12/11/09
to
Found out that I can use the ActiveX Control do pretty much do what I was
wanting to do and had problems.

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..

Richard Marsden

unread,
Dec 12, 2009, 2:33:21 PM12/12/09
to
I think you need to define MapPoint as Interop.MapPoint.

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

Sascha Trowitzsch

unread,
Dec 14, 2009, 10:39:22 AM12/14/09
to
Hi,

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

0 new messages