Community of VE/MapPoint Users and Developers
This is a discussion on MapPoint 2006 C# - No class implementing 'Application'-interface? within the Development forums, part of the MapPoint 2006/2009 Discussion category; Hi, In MapPoint 2004, there is a class named ApplicationClass that implements the Application interface so that one can access ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| MapPoint 2006 C# - No class implementing 'Application'-interface? In MapPoint 2004, there is a class named ApplicationClass that implements the Application interface so that one can access MapPoint without dropping in the OCX-component (ActiveX Control): Code: using MapPoint; ... ApplicationClass _app = new ApplicationClass(); Map _map = _app.ActiveMap; ... Thanks in advance, /John |
| |||
| Re: MapPoint 2006 C# - No class implementing 'Application'-interface?
Hi, I have this code snipped wording with mp2006: Code: private void button1_Click(object sender, System.EventArgs e)
{
try {
app = new ApplicationClass();
app.Visible = true;
// etc...
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: MapPoint 2006 C# - No class implementing 'Application'-interface?
Hi, Thanks for you reply! I was refering to the .ocx-component, my bad. Works fine now, however I cannot load the US maps (got them installed). If I drop in the Active X Controll I can select US maps and it loads fine: Code: axControl.NewMap(GeoMapRegion.geoMapNorthAmerica); Code: ApplicationClass _app = new ApplicationClass(); Map _map = _app.NewMap( ? ); // takes string ... /John |
| ||||
| Re: MapPoint 2006 C# - No class implementing 'Application'-interface?
The string is a path name to a MapPoint template file. You can use OpenMap if you want to open a map file (instead of creating a new one based on a template). This has two parameters - you probably need to use the second one (boolean, add file to "recent file" list?) because COM doesn't always support optional parameters properly. Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
![]() |
| Tags |
| applicationinterface, class, implementing, mappoint 2006 |
| ||||
| Posted By | For | Type | Date | |
| Programming MapPoint in .NET - MP2K Magazine | This thread | Refback | 07-11-2008 10:22 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Deploying a VB.Net 2005 Application w/ MapPoint 2006 | control13 | Development | 1 | 03-31-2008 08:10 AM |
| Using Mappoint in a class library | shalu | MapPoint Web Service and Virtual Earth | 0 | 01-31-2008 06:13 AM |
| Delphi class | terrastudios | MapPoint 2006/2009 Discussion | 9 | 12-02-2005 05:01 AM |
| generating with/implementing a map in MapPoint 2004 | mohrm | MapPoint 2006/2009 Discussion | 0 | 09-21-2004 04:56 AM |
| Background database interface with Mappoint | Anonymous | MapPoint 2006/2009 Discussion | 0 | 02-03-2004 04:16 PM |