Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

Map Point 2002 Error Message

This is a discussion on Map Point 2002 Error Message within the MapPoint Desktop 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 ...

  1. #1
    VeGeTa-X is offline 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 ()

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60

    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

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Show lat lon point from text message
    By southernpost in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 12-08-2006, 05:48 PM
  2. Error while accessing Map POint webservice
    By amitsh in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-22-2006, 01:27 PM
  3. Parser Error Message: Could not load type 'StoreLocatorVB.Gl
    By mike91 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-13-2006, 04:32 PM
  4. MapLinX error message
    By NickS in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-23-2004, 08:48 AM
  5. Error message
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-16-2003, 09:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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