--- In [email protected], "mockey_a" <[EMAIL PROTECTED]> wrote:
>
> Hi.
> 
> There seems to be something wrong with arrays of structs in 
current 
> dll-version.
> As a possible workaround you can replace this:
> 
> --- In [email protected], "kottami" <kottami@> wrote:
> > p1=dll.create_struct("i i", x1, y1)
> > p2=dll.create_struct("i i", x2, y1)
> > p3=dll.create_struct("i i", x2, y2)
> > p4=dll.create_struct("i i", x1, y2)
> 
> > aPoints=dll.create_struct("t t t t", p1, p2, p3, p4)        
> 
> > cRgn=dll.call("CreatePolygonRgn|t* i i",aPoints,4,2)        
> 
> with this:
> 
> aPoints = dll.create_array(8, "i", x1, y1, x2, y1, x2, y2, x1, y2)
> cRgn = dll.call("CreatePolygonRgn|a* i i", aPoints, 4, 2)
> 
> BTW:
> You don't need to create a polygon for a rectangle.
> cRgn = dll.call("CreateRectRgn|i[4]", x1, y1, x2, y2)
> should do.
> 
> Mockey
>


Hi.. Mockey..

Look..
http://memolog.blog.naver.com/entryno/233

Thanks... a lot..

Regards,
kottami

Reply via email to