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

finding a pushpin from a .dll

This is a discussion on finding a pushpin from a .dll within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi Folks, created a com-Add-In for Mappoint. When I try to find a pushpin with the following code, I get ...

  1. #1
    blackmap is offline Member Yellow Belt
    Join Date
    Dec 2002
    Posts
    39

    finding a pushpin from a .dll

    Hi Folks,

    created a com-Add-In for Mappoint. When I try to find a pushpin with the following code, I get no result:

    Set oApp = CreateObject("Mappoint.Application")
    Set oMap = oApp.ActiveMap

    Set oPushA = oMap.FindPushpin("xyz")

    I am sure there's a pushpin with the name xyz. How can I check if there's a result?

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    For a COM Add-In you need to "Get" the Map Object that is already running as opposed to Creating a new Map Object.

    Code:
    Dim objmap As MapPoint.Map
    
    Set objmap = GetObject(, "MapPoint.Application").ActiveMap
    Dim aPushpin As MapPoint.Pushpin

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Finding USA Data
    By everblader in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-19-2005, 12:41 PM
  2. finding size of images
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-23-2004, 08:52 PM
  3. finding locations
    By SimonPearse in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-23-2004, 08:56 AM
  4. Finding closest 10 locations
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-19-2003, 04:59 AM
  5. Finding Pushpin Name by clicking on the Pushpin?(MP 2002)
    By NickSP in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 01-10-2003, 12: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 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