Community of VE/MapPoint Users and Developers
This is a discussion on MP 2004 + VS2005 COM exception within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I was trying to get some examples from the MapPoint book to work but when i try to add ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| MP 2004 + VS2005 COM exception Code: //Get map center location MapPoint.Location location = axMappointControl1.ActiveMap.Location; //Add a pushpin at this location MapPoint.Pushpin pushpin = axMappointControl1.ActiveMap.AddPushpin(location, "Center"); //Assign a symbol pushpin.Symbol = 64; //Select and highlight the location pushpin.Select(); pushpin.Highlight = true; //Write annotation pushpin.Note = "This is my favorite place!"; The database schema is not recognized Can someone help me please ? Thanks in advance! |
| |||
|
Hi, You need to assigne the location first from coordinates: Code: Location loc = mp.ActiveMap.GetLocation(lat, lon, alt);
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| 2004, exception, vs2005 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ActiveX control fails in VS2005, but was fine in VS2003 | jtowell | MapPoint 2006/2009 Discussion | 7 | 11-23-2006 03:42 PM |
| OutOfMemory Exception | Gianmaria | MapPoint 2006/2009 Discussion | 1 | 01-24-2006 01:26 PM |
| Regarding COM exception at the end of execution... | Anonymous | MP2K Magazine Articles | 0 | 05-12-2005 01:23 PM |
| Recordset exception. What am I doing wrong? | Anonymous | MapPoint 2006/2009 Discussion | 3 | 01-25-2005 03:26 PM |
| Unknown Host Exception | amitsh | MapPoint 2006/2009 Discussion | 2 | 11-04-2004 12:18 AM |