Hi:<br><br>today Roberto Antolin and me are working with liblas for
first time with c++ and .NET. We found several problems with c++ and C
APIs:<br><br>- CAPI not exposed in windows. I am using the mateus compilation and mi mingw compilation.<br>
I tried use this file but donīt have the CAPI or i can not see it:<br><a href="http://liblas.org/raw-attachment/wiki/1.0.0/liblas-1.0.0-win32.zip" target="_blank">http://liblas.org/raw-attachment/wiki/1.0.0/liblas-1.0.0-win32.zip</a><br>

<br><br>- CAPI GetPointAt always the same pointer:<br><br>&nbsp;Console.WriteLine(&quot;___ &quot; + CAPI.LASReader_GetPointAt(<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hReader, position) + &quot; __ &quot;);<br>&nbsp;Console.WriteLine(&quot;___ &quot; + CAPI.LASReader_GetPointAt(hReader, position+1) + &quot; __ &quot;);<br>
<br>With this i get always the same pointer.<br><br>is it possible this CAPI is wrong??<br><br>LAS_DLL const LASPointH LASReader_GetPointAt(const LASReaderH hReader, liblas::uint32_t position)<br>287&nbsp;&nbsp;&nbsp; {<br>288&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VALIDATE_POINTER1(hReader, &quot;LASReader_GetPointAt&quot;, NULL);<br>

289&nbsp;&nbsp;&nbsp; <br>290&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; try {<br>291&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LASReader *reader = ((LASReader*) hReader);<br>292&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (reader-&gt;ReadPointAt((std::size_t) position)) <br>293&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // return (LASPointH) new LASPoint(reader-&gt;GetPoint());<br>

294&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (LASPointH) &amp;(reader-&gt;GetPoint());<br>295&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else <br>296&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return NULL;<br>297&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } catch (invalid_point_data const&amp; e /*e */) {<br>298&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LASError_PushError(LE_Failure, e.what(), &quot;LASReader_GetPointAt Invalid Point&quot;);<br>

299&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } catch (std::exception const&amp; e)<br>300&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>301&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LASError_PushError(LE_Failure, e.what(), &quot;LASReader_GetPointAt&quot;);<br>302&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>303&nbsp;&nbsp;&nbsp; &nbsp;<br>304&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return NULL;<br>305&nbsp;&nbsp;&nbsp; <br>

306&nbsp;&nbsp;&nbsp; }<br><br>see the line 294.<br><br>I donīt ask a ticket because i am not sure.<br><br><br>But now Roberto Antolin is working with the c++ API and works perfectly&nbsp; fine.<br><br><br>Regards.</blockquote>