MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




finding a pushpin from a .dll

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


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-08-2003
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?
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-10-2003
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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
dll, finding, pushpin


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
Finding USA Data everblader MapPoint 2006/2009 Discussion 1 01-19-2005 12:41 PM
finding size of images Anonymous MapPoint 2006/2009 Discussion 0 11-23-2004 08:52 PM
finding locations SimonPearse MapPoint 2006/2009 Discussion 0 09-23-2004 08:56 AM
Finding closest 10 locations Anonymous MapPoint 2006/2009 Discussion 1 11-19-2003 04:59 AM
Finding Pushpin Name by clicking on the Pushpin?(MP 2002) NickSP MapPoint 2006/2009 Discussion 4 01-10-2003 12:11 PM


All times are GMT -5. The time now is 01:10 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

Tenerife Holiday
Find a great deal on a Tenerife holiday through UlookUbook! Check out the options online...



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