MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




addPushpin

This is a discussion on addPushpin within the MapPoint 2006/2009 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 ...


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

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



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-27-2004
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.
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 01-27-2004
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
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
addpushpin


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
addpushpin - need help to get started BWard MapPoint 2006/2009 Discussion 7 12-19-2005 02:15 PM
addpushpin problem Anonymous MapPoint 2006/2009 Discussion 9 09-28-2004 09:12 AM
AddPushPin Anonymous MapPoint 2006/2009 Discussion 0 03-01-2004 10:41 AM
AddPushpin with more data than Loc and name possible? Anonymous MapPoint 2006/2009 Discussion 5 03-17-2003 06:11 PM
AddPushpin Monique MapPoint 2006/2009 Discussion 3 08-20-2002 01:26 AM


All times are GMT -5. The time now is 01:22 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Dalaman Holiday
Enjoy a wonderfully peaceful Dalaman holiday... Book through UlookUbook and save!



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