<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div>take this for instance <br></div><pre style="" class="lang-c prettyprint prettyprinted"><code><span class="typ">CvPoint</span><span class="pln"> points</span><span class="pun">[</span><span class="lit">2</span><span class="pun">];<br><br><br>id like to be able to cast points[2] to the CvPoint struct more info here http://docs.opencv.org/modules/core/doc/old_basic_structures.html?highlight=cvpoint#CvPoint<br><br><br>here is my struct which works for other things<br><br><br><br>;; (cffi:foreign-type-size '(:struct cv-point)) = 8<br>(cffi:defcstruct cv-point<br> (x :int)<br> (y :int))<br><br><br>put in a defparameter you cant just go <br><br>(defparameter points (cffi:foreign-alloc :int :count 2))<br><br>(defparameter a ((:struct cv-point) points))<br><br><br>you get an illegal function
call error...any help is appreciated<br></span></code></pre></div></body></html>