Error 1 Cannot implicitly convert type 'System.IntPtr' to 'MapTools.ShapeLib.SHPObject'

View: New views
1 Messages — Rating Filter:   Alert me  

Error 1 Cannot implicitly convert type 'System.IntPtr' to 'MapTools.ShapeLib.SHPObject'

by Álvaro Trindade :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi All,
 
I am brand new with ShapeLib and with C#. I was trying to test it, but, when I try to use the SHPReadObject() i am getting a conversion error:

Error 1 Cannot implicitly convert type 'System.IntPtr' to 'MapTools.ShapeLib.SHPObject' 

The code:

ShapeLib.SHPObject currentSHPObject = new ShapeLib.SHPObject();

currentSHPObject = ShapeLib.SHPReadObject(hShp, 1);

What am i doing wrong ? how can i fix it ?

Tks.


_______________________________________________
Shapelib mailing list
Shapelib@...
http://lists.maptools.org/mailman/listinfo/shapelib