Has anyone been able to successfully use North America and Europe in the same application?
I can create an instance of the MapPoint NA Application object with this:
Code:
MapPoint.ApplicationClass theApp = new MapPoint.ApplicationClass();
This works fine. I also want to create an instance of the MapPoint Europe Application object, which I assumed had the same interface.
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;
}
This also, works but MapPoint.Application and MapPoint._Application have different interfaces than MapPoint.ApplicationClass so I can't use them interchangeably nor do they even support all of the methods. I'm stuck!