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

addPushpin

This is a discussion on addPushpin within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello everyone. In my application I have declared Private MapPointApp As MapPoint.Application Private objFindResults As MapPoint.FindResults Also I have an ...

  1. #1
    nringdahl is offline Junior Member Yellow Belt
    Join Date
    Jan 2004
    Posts
    16

    addPushpin

    Hello everyone.

    In my application I have declared
    Private MapPointApp As MapPoint.Application
    Private objFindResults As MapPoint.FindResults

    Also I have an instance of the MapPointControl called objMapPointControl.

    In the Form.Load event:

    Set MapPointApp = New MapPoint.Application

    objMappointControl.NewMap (geoMapEurope)

    The map shows as planned in the control. Then I perform an address search and stores the result in a global:

    Set objFindResults = MapPointApp.ActiveMap.FindResults(strAddress)

    Later I want to add a pushpin to the map and I use:

    Dim i As Integer
    Dim objLocation As MapPoint.Location
    Dim objPushpin As MapPoint.Pushpin
    Dim objMap As MappointCtl.Map

    Set objMap = objMappointControl.ActiveMap

    i = 1

    Set objLocation = objFindResults(i)

    Set objPushpin = objMap.AddPushpin(objLocation)

    And on this row, the error "Method AddPushPin of object '_Map' failed" occurs.

    Can anyone see what the problem might be?

    - Niklas

    I am using MP2004 and VB6.

  2. #2
    nringdahl is offline Junior Member Yellow Belt
    Join Date
    Jan 2004
    Posts
    16
    It seemed as if the two different MapPoint objects somehow interfered with each other, I changed the code and only use one of them and it worked.

    - Niklas

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. addpushpin - need help to get started
    By BWard in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 12-19-2005, 03:15 PM
  2. addpushpin problem
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 9
    Last Post: 09-28-2004, 10:12 AM
  3. AddPushPin
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-01-2004, 11:41 AM
  4. AddPushpin with more data than Loc and name possible?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 03-17-2003, 07:11 PM
  5. AddPushpin
    By Monique in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-20-2002, 02:26 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