This project is read-only.

I cannot use shapefile.EditAddField() in

Mar 14, 2013 at 5:01 AM
Edited Mar 14, 2013 at 5:05 AM
Hi all
From this link (below).

In this line.
int fldX = sf.EditAddField("x", FieldType.DOUBLE_FIELD, 9, 12);

I use it in and alert message ("'EditAddField' is not a member of MapWinGis.shapefile ")
My Example code
Dim sf As New MapWinGIS.Shapefile
sf.CreateNewWithShapeID("", MapWinGIS.ShpfileType.SHP_POINT)
'add field
sf.EditAddField("x",................... )

How to solve it. >_<
Ps. I use Mapwingis4.8 + 2010
Mar 15, 2013 at 2:31 PM
You might need a newer version of the ocx.
You can download it from here:
You'll need the ocx and the two interop dlls.
regMapWinGIS.cmd can be used to register the ocx
Depending on how old your current version is you might need some of the other dlls too.

To be on the save side you can install the latest version of MapWindow, this includes the ocx:

Mar 18, 2013 at 2:55 AM
Hi Paul
Thank you very much.