MapWindow / MapWinGIS

MapWinGIS.ocx is a FREE and OPEN SOURCE C++ based geographic information system programming ActiveX Control and application programmer interface (API) that can be added to a Windows Form in Visual Basic, C#, Delphi, or other languages that support ActiveX, providing your app with a map. Go to our forum for questions and help:
https://mapwindow.discourse.group/
Mozilla Public License 2.0
270 stars 134 forks source link

Shape.get_XY does not work because of wrong interface-description #224

Open frank2x460 opened 2 years ago

frank2x460 commented 2 years ago

Error in MapWinGIS.idl

interface IShape:

the entry for the get_XY function should be: [id(38), helpstring("method get_XY")] HRESULT get_XY([in] LONG PointIndex, [in, out]double x, [in, out]double y, [out, retval] VARIANT_BOOL* retval);

WRONG: [propget, id(38), helpstring("property XY")] HRESULT XY([in]long PointIndex, [in, out]double x, [in, out]double y, [out, retval] VARIANT_BOOL* retval);

After that change the get_XY function works as described in the documentation!

Would be nice if someone could fix this. Thanks, Frank

pmeems commented 1 year ago

Hi @frank2x460 can you make a pull request on the develop branch?