Community of VE/MapPoint Users and Developers
This is a discussion on Use MapPoint NA and MapPoint EU in the same application? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Has anyone been able to successfully use North America and Europe in the same application? I can create an instance ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Use MapPoint NA and MapPoint EU in the same application? I can create an instance of the MapPoint NA Application object with this: Code: MapPoint.ApplicationClass theApp = new MapPoint.ApplicationClass(); Code: Type mpType = Type.GetTypeFromProgID("MapPoint.Application.EU", false);
object mpEu = Activator.CreateInstance(mpType);
MapPoint.Application mpEuApp;
if(mpEu is MapPoint.Application)
{
// MapPoint._Application also works
// MapPoint.ApplicationClass does not work.
mpEuApp = (MapPoint.Application)mpEu;
}
|
| ||||
|
In C++, I use Code: _ApplicationPtr myAppPtr;
if ( myAppPtr.CreateInstance(appObjName) != 0)
{
// error
}
I have an application that successfully queries the registry to find which versions are available, and then gives the user the choice. (unfortunately it doesn't work for selecting 2002 vs 2004) But it does work for selecting Europe vs. North America. 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 |
| |||
|
The problem I am having is not with creating instances (either NA or EU) of these applications. I can do that just fine. The problem I am having is that the instances don't have the same interface. So I can't decide which one I want to load and then assign it to some generic reference (which is what I'd like to do). |
![]() |
| Tags |
| application, mappoint |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Mappoint with Web Application | Anonymous | MapPoint 2006/2009 Discussion | 0 | 06-02-2004 08:29 AM |
| Cant See Mappoint.Application from VB | Anonymous | MapPoint 2006/2009 Discussion | 2 | 04-15-2004 11:15 AM |
| Creating an application with mappoint within vb | blackmap | MapPoint 2006/2009 Discussion | 3 | 12-16-2002 07:15 PM |
| Hi, I need help getting MapPoint.Application to.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-23-2002 07:10 AM |
| I am trying to use the Mappoint in my application .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-03-2001 10:53 PM |