MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




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 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-30-2003
Junior Member
White Belt
 
Join Date: Sep 2003
Posts: 1
Send a message via MSN to chulaka
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-30-2003
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
2003, activex, control, mappoint 2002, net, studio, visual


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -5. The time now is 03:27 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Menorca Holiday
Enjoy a Menorca holiday at a great rate when booked through UlookUbook!



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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59