MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




Events and VB code

This is a discussion on Events and VB code within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I've this portion of code with WithEvents words Once i attempt to compile this code, i've got "error code ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-05-2004
Junior Member
Yellow Belt
 
Join Date: Dec 2003
Posts: 17
Events and VB code

Hi,
I've this portion of code with WithEvents words

Once i attempt to compile this code, i've got "error code num 430, the class doesn't managed automation or interface requested"

Is some one have had this king of problem ?

If I remove WithEvents , the event is not captured

Thanks for the help

Dim WithEvents objApp As MapPoint.Application
Dim WithEvents objMap As MapPoint.Map

Private Sub Command1_Click()
Dim objPin As MapPoint.Pushpin
'Add a Pushpin, then select it
Set objPin = objMap.AddPushpin(objMap.FindResults("Seattle, WA")(1))
objPin.Select
End Sub

Private Sub Form_Load()
'Set up the application
Set objApp = CreateObject("mappoint.application")
Set objMap = objApp.ActiveMap
objApp.Visible = True
objApp.UserControl = True
End Sub

Private Sub objMap_SelectionChange(ByVal NewSelection As Object, ByVal OldSelection As Object)
NewSelection.Location.GoTo
End Sub
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
code, events


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
Pushpin events Landyd MapPoint Desktop Discussion 1 05-24-2006 12:22 PM
Catch mappoint events using C++ (without MFC...) Jeurink MapPoint Desktop Discussion 8 03-15-2005 05:35 AM
Triggering Events in MapPoint... joer1234 MapPoint Desktop Discussion 0 09-29-2004 11:52 PM
Optimize Events Anonymous MapPoint Desktop Discussion 0 12-03-2003 12:45 PM
Events Communication Anonymous MapPoint Desktop Discussion 0 09-16-2002 09:19 AM


All times are GMT -5. The time now is 04:15 AM.


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



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