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

OLE Delphi 6 Novice

This is a discussion on OLE Delphi 6 Novice within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi New to MapPoint and I need a quick kick start please. I want to bring up a up Map ...

  1. #1
    BigH42 is offline Junior Member White Belt
    Join Date
    Jul 2005
    Posts
    4

    OLE Delphi 6 Novice

    Hi

    New to MapPoint and I need a quick kick start please. I want to bring up a up Map on a Form in Delphi 6. The following Code Example I used failed with Invalid Class String in CreateObject:-

    var
    vGuid: TGuid;
    OleContainer: TOleContainer;
    begin
    OleContainer.CreateObject('MapPoint.Map.EU.9', False);
    OleContainer.DoVerb(1);
    OleContainer.OleObjectInterface.GetUserClassID(vGu id);
    FMap := IDispatch(OleContainer.OleObject) as _Map;
    FMap:= Application1.ActiveMap;
    FMap.Application.Visible := TRUE;
    FMap.GoToLatLong(51, -2, 100);
    end;

    Many Thanks in Anticipation for your Assistnts

    Regards Henry

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    There are a couple articles that should help --
    Using MapPoint in Delphi
    and
    Delphi Address Verifier

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    BigH42 is offline Junior Member White Belt
    Join Date
    Jul 2005
    Posts
    4
    Hi

    Does anybody know the OleClassName for Mappoint 2004, its was 'MapPoint.Map.EU.9 for 2002.
    Thanks in anticipation for your reply

    Regards Henry

  4. #4
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    I believe it would be 11 for 2004..

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  5. #5
    BigH42 is offline Junior Member White Belt
    Join Date
    Jul 2005
    Posts
    4
    Hi

    That info (11) and fixing some self inflicted problems of mine has me up and running. Many Thanks

    Regards Henry

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using MP2004 with Delphi
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 13
    Last Post: 03-02-2005, 08:50 AM
  2. DisplayDataMap in Delphi 7
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-17-2004, 06:59 AM
  3. Delphi
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-18-2003, 12:11 PM
  4. 'AddCommand' + Delphi
    By stuarth in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-09-2003, 10:18 AM
  5. Mappoint With Delphi 5
    By stuarth in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-08-2003, 11:21 AM

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 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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96