Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

MapPoint 2002 ActiveX control and Visual Studio .NET 2003

This is a discussion on MapPoint 2002 ActiveX control and Visual Studio .NET 2003 within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I am trying to do something very simple. I embeded the active-x control in a windows form and in ...

  1. #1
    chulaka is offline Junior Member White Belt
    Join Date
    Sep 2003
    Posts
    1

    MapPoint 2002 ActiveX control and Visual Studio .NET 2003

    Hi,

    I am trying to do something very simple. I embeded the active-x control in a windows form and in the form's Load event I have the following code:

    I added the MapPoint Control 9.0

    private void Form1_Load(object sender, System.EventArgs e) {
    this.axMappointControl1.NewMap("C:\\New North American Map.ptt");
    }

    I get the following error:

    An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in axinterop.mappoint.dll
    Additional information: This method or property is not implemented.
    Unhandled Exception: The program '[3960] AssetTracker.exe' has exited with code 0 (0x0).
    System.Runtime.InteropServices.COMException (0x8000FFFF): This method or property is not implemented.
    at MapPoint.IMappointCtrl.NewMap(Object Template)
    at AxMapPoint.AxMappointControl.NewMap(Object template)
    at AssetTracker.Form1.Form1_Load(Object sender, EventArgs e)
    ....


    What have I done wrong? I seems to me that most other people have got beyond this point. Have I not followed some setup sets?

    Thanks for any insight...

    Chulaka

  2. #2
    Matrices is offline Member Yellow Belt
    Join Date
    Sep 2003
    Posts
    44
    Firstly let me apologise cos I hate C and may therefore be on the wrong track, but in VB you have to declare the map object before you attempt to open it :
    Code:
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim objmap As MapPoint.Map
     
    
            Me.AxMappointControl1.NewMap("C:\Documents and Settings\Dave\My Documents\map.ptm")
        End Sub
    so would assume you have to do something similar in C too but in advance tbh!!

    M

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. tutorial mappoint in VB6.0 visual studio
    By lucci56 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-14-2006, 09:06 AM
  2. Control of MapPoint 2002 using Visual Basic .Net
    By DogsWorld in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-26-2004, 11:53 PM
  3. Accessing Mappoint 2002 via Visual Studio .NET 2003
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-14-2003, 12:01 PM
  4. Visual Studio C# MP2002 Control creation
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-05-2002, 09:32 PM
  5. I am using Mappoint 2002 ActiveX control in a VB a....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-14-2002, 08:10 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36