Community of VE/MapPoint Users and Developers
This is a discussion on Map Point 2002 Error Message within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Greetings, I am receiving an error message when I am try to launch mappoint 2002 from xatanet.com. I have pasted ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Map Point 2002 Error Message I am receiving an error message when I am try to launch mappoint 2002 from xatanet.com. I have pasted a pic of the error message below also I will paste the text below that if any has come across this error message please let em know. Thx ![]() **Error Message from above** System.InvalidCastException: Unable to cast COM object of type 'MapPoint.MapClass' to interface type 'MapPoint._Map'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{90B167C0-923D-4B65-AEE2-66938491C916}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). at MapPoint.MapClass.GetLocation(Double Latitude, Double Longitude, Double Altitude) at Xata.XataNet.MapControl.ClientMap.SetItem(Double dLat, Double dLong, String strName, String strText, Int16 sSymbol, GeoBalloonState labelState) at Xata.XataNet.MapControl.ClientMap.GenerateMapImage () |
| ||||
| Re: Map Point 2002 Error Message
It should be ._Map - and it is trying to cast to that. What is MapClass - is this something you've created, or your environment has created? I don't know xatanet.com, but it looks like the COM interface might be pretty low level? In which case it might be instructive to look at C++ examples without MFC. Eg: Calling MapPoint From C++ Without the MFC Safety Net - MapPoint Articles - MP2K Magazine The application object's ActiveMap property returns a _MapPtr - you need to cast this to get a _Map ptr. Eg. in the above example: // Most operations are through the map object, so get a pointer // to the current _Map object _MapPtr myMapPtr = myMapPoint->ActiveMap; _Map* myMap = (_Map*)myMapPtr; ATLASSERT( myMap!=NULL ); 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 |
| |||
| Re: Map Point 2002 Error Message
Hi, this can be an invalid typecast. can also be if the application that uses mappoint is running as NT service, if the latter then you have to click OK on the EULA when it runs as service. what is the programming language, and can you show the line of code with the exception?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| 2002, error, map, message, point |
| ||||
| Posted By | For | Type | Date | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 10-16-2007 09:43 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Show lat lon point from text message | southernpost | MapPoint Web Service and Virtual Earth | 1 | 12-08-2006 04:48 PM |
| Error while accessing Map POint webservice | amitsh | MapPoint 2006/2009 Discussion | 4 | 11-22-2006 12:27 PM |
| Parser Error Message: Could not load type 'StoreLocatorVB.Gl | mike91 | MapPoint 2006/2009 Discussion | 1 | 06-13-2006 03:32 PM |
| MapLinX error message | NickS | MapPoint 2006/2009 Discussion | 0 | 05-23-2004 07:48 AM |
| Error message | Anonymous | MapPoint 2006/2009 Discussion | 0 | 03-16-2003 08:11 PM |
Cheap Flights to Brussels
Book cheap flights to Brussels online today. Brussels is a city with diverse culture with over 100 museums to visit and an array of different architectural designs to view.
European City Breaks
Book European city breaks with Travel Counsellors. A personal travel counselor will help plan your European city break.
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.
Holidays to Dominican Republic
Holidays to Dominican Republic offer a wealth of natural beauty and magnificent views. Come alive in the splendor of the Dominican Republic!
Cheap Balearics Holidays
Cheap Balearics holidays are available if you know when to book and who to book with. The Balearics have many fascinating places to visit all year round. The partying never stops.
Travel Deals
Find the very best travel deals on your prime comparison site, Travel.co.uk
Goa Holidays
Enjoy the warm and sunny climate of Western India. Visit On The Beach for information on Goa holidays.