MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Map Point 2002 Error Message

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


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 10-15-2007
Junior Member
White Belt
 
Join Date: Oct 2007
Posts: 1
Map Point 2002 Error Message

Greetings,
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 ()
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 10-16-2007
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 848
Blog Entries: 7
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
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 10-16-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
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?
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

Tags
2002, error, map, message, point


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/map-point-2002-error-message-6533.html

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

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


All times are GMT -5. The time now is 08:20 PM.


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

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.


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 52