Ok. 20 is the initial allocated space in the array. You must increment it
used space in order to Count return a value different from 0.

Best,
Scuri

> -----Original Message-----
> From: Ano Nymous [mailto:[email protected]]
> Sent: quinta-feira, 12 de julho de 2012 10:20
> To: IUP discussion list.
> Subject: Re: [Iup-users] iupArray, how does it works?
> 
> sorry, i think i figure out how it works after reading the iup_array.c
> 
> 
> On 7/12/12, Ano Nymous <[email protected]> wrote:
> > hi, am trying to understand the iupArray functions, but it doesn't
> > seems to work,
> >
> > could anyone insight me how to use it?
> >
> > i try a simple code
> > cinvoke     iupArrayCreate,20,8
> >             mov  [array1],eax
> > cinvoke     iupArrayCount,[array1]
> > cinvoke     printf,<'[array1] = %lu',13,10>,eax
> >
> > it shows [array1] = 0, why it reports 0 instead of 20?
> >
> 
>
----------------------------------------------------------------------------
--
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
landscape
> has changed and how IT managers can respond. Discussions will include
> endpoint security, mobile security and the latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to