map.extents returns an object instead of IExtent

Activity

Show:
Jerry Faust
October 28, 2017, 7:25 PM

Providing a more consistent interface, the property type for Map.Extents has been changed from IDispatch* to IExtents*. Since IExtents is a dual interface, this change provides the well-known data type already provided by similar properties (MaxExtents and GeographicExtents) while still providing the discoverable (late-bound) interface provided by IDispatch, which is beneficial for scripting languages, such as VBA.

Paul Meems
October 28, 2017, 12:30 PM

Casting solves this issue:

Most likely this is a remnant from the old days when MapWinGIS did not yet have IExtent.

Done

Assignee

Jerry Faust

Reporter

Paul Meems

Labels

None

Epic Link

None

Affects versions

Fix versions

Priority

Medium