MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Use MapPoint NA and MapPoint EU in the same application?

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2005
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2005
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 769
Blog Entries: 3
In C++, I use


Code:
	_ApplicationPtr myAppPtr;

	if ( myAppPtr.CreateInstance(appObjName) != 0)
	{
		// error
	}
and set appObjName to "MapPoint.Application.NA" or "MapPoint.Application.EU"

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2005
Junior Member
White Belt
 
Join Date: Apr 2005
Posts: 8
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).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Using Mappoint with Web Application Anonymous MapPoint 2006/2009 Discussion 0 06-02-2004 07:29 AM
Cant See Mappoint.Application from VB Anonymous MapPoint 2006/2009 Discussion 2 04-15-2004 10:15 AM
Creating an application with mappoint within vb blackmap MapPoint 2006/2009 Discussion 3 12-16-2002 06:15 PM
Hi, I need help getting MapPoint.Application to.... Anonymous MapPoint 2006/2009 Discussion 1 01-23-2002 06:10 AM
I am trying to use the Mappoint in my application .... Anonymous MapPoint 2006/2009 Discussion 1 12-03-2001 09:53 PM


All times are GMT -5. The time now is 05:48 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Flights to Tunisia
Experience the cultural mix of Tunisia yourself. Visit their impressive historical sites and delicious cuisine. Visit us online to get great value flights to Tunisia.

Portugal Weather
Check out Portugal Weather - Travel Counsellors details information on Portugal including, weather, flights and accommodation.

Holiday Italy
A Holiday in Italy can mean many different things to many different people. This diverse country has an abundance of art, wine, food and stunning beaches. Book online today.

Bahamas Holidays
Bahamas Holidays offer pure blue skies, soft white beaches and the holiday of a lifetime. Visit us for a great deal to the Bahamas.

Tunisia
Tunisia enjoys excellent weather, golden beaches and a beautiful blue sea. Moving away from the beach you will find a country that has a rich and varied past. Discover the secrets of history yourself by exploring all the ruins.

Travel Guides
As far as travel guides are concerned, your best move would be to check out our website at Travel.co.uk

Holidays to Gran Canaria
The Canary Islands await! Book holidays to Gran Canaria online at On The Beach!


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51