Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

How to cast?

$
0
0
Referrring to the code at
http://edndoc.esri.com/arcobjects/9....teLocation.htm
Dim pRtLocName As IRouteLocatorName
Set pRtLocName = New RouteMeasureLocatorName
I tried to do like that
ESRI.ArcGIS.Geodatabase.IRouteLocatorName pRtLocatorName = new ESRI.ArcGIS.Location.RouteMeasureLocatorName();
but got the compile error:
Cannot implicitly convert type 'ESRI.ArcGIS.Location.RouteMeasureLocatorName' to 'ESRI.ArcGIS.Geodatabase.IRouteLocatorName'. An explicit conversion exists (are you missing a cast?)
I tried to cast but not successful. How to cast the variable here? Thanks for your hint.

Viewing all articles
Browse latest Browse all 1374

Trending Articles