Community of MapPoint and Bing Maps Users and Developers
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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Events and VB code 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 |
![]() |
| Tags |
| code, events |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |