MapPoint Forums

MapForums

Community of VE/MapPoint 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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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


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 10:23 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Flights to Funchal
Magnificent Madeira provides panoramic views for you. See for yourself and book cheap flights to the capital, Funchal.

Travel Counsellors
Travel Counsellors are an award winning Travel Agent. Have a personal Travel Counsellor help with your travel plans.

Thailand Holiday
A Thailand Holiday has much to offer with historic culture, lively arts, beautiful beaches, a good nightlife, friendly and hospitable people and one of the best cuisines in the world.

Holidays to Barbados
Holidays to Barbados have so much to offer. Enjoy the beauty of this Caribbean island for less by booking your holiday through us.

Cheap Turkey Holidays
The best time of year to sneak in cheap Turkey holidays is during the off-peak season. Check out the great deals available during April, May or October. For other tips on how to bag a great value holiday simply check online at ulookubook.com

Compare holiday prices
Compare holiday prices online where you can see all the possibilities at Travel.co.uk

Cheap Portugal Holidays
Hotels of all ratings! Find information on cheap Portugal holidays at On The Beach!


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