ну блин вообще
вообще ктонибудь знает как выбрать объект на карте по атрибуту на c++, vb, delphi. Пробовал по аналогии с vba но ничего не получилось, может кто знает или сможет по аналогии. На vba это выглядит так:
Private Sub CommandButton1_Click()
Dim pMxDoc As IMxDocument
Dim pMap As IMap
Dim pActiveView As IActiveView
Dim pFeatureLayer As IFeatureLayer
Dim pFeatureSelection As IFeatureSelection
Dim pQueryFilter As IQueryFilter
Set pMxDoc = Application.Document
Set pMap = pMxDoc.FocusMap
Set pActiveView = pMap
If Not TypeOf pMap.Layer(0) Is IFeatureLayer Then Exit Sub
Set pFeatureLayer = pMap.Layer(1)
Set pFeatureSelection = pFeatureLayer
Set pQueryFilter = New QueryFilter
pQueryFilter.WhereClause = "УЛИЦА = 'Пушкина'"
pActiveView.PartialRefresh esriViewGeoSelection, Nothing, Nothing
pFeatureSelection.SelectFeatures pQueryFilter, esriSelectionResultNew, False
pActiveView.PartialRefresh esriViewGeoSelection, Nothing, Nothing
End Sub