View Single Post

  #1 (permalink)  
Old 04-08-2005
1.21Gigawatts 1.21Gigawatts is offline
Junior Member
White Belt
 
Join Date: Apr 2005
Posts: 8
Use MapPoint NA and MapPoint EU in the same application?

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!
Reply With Quote