How do i convert this to asm- int iStatusWidths[] = {200, 300, -1} Thnaks in advance.
Posted on 2001-06-02 13:52:00 by MovingFulcrum

 iStatusWidths  dw  200, 300, -1

 haven't test it yet, but i believe that's how you do it.
 note: correct me if i'm wrong

Posted on 2001-06-02 13:57:00 by disease_2000
You're correct. You could also have done : iStatusWidths sdword 200, 300, -1 ; because int are signed
Posted on 2001-06-02 16:05:00 by karim
Well i tried out disease_2000's method and it gave me a stutus bar with only one part extending from the lfet to the right. So i tried iStatusWidths dd 200,300,-1 and it worked!
Posted on 2001-06-03 06:14:00 by MovingFulcrum
disease used dw as data type, which is a WORD. And the ints here are 32-bit, so they should be a (signed) dword like karim said. Thomas
Posted on 2001-06-03 06:36:00 by Thomas
I thought 'dw' was used to define a double word. It's better to use long type name (byte, word, dword etc.)
Posted on 2001-06-03 06:59:00 by karim

 that's what i thought too! honestly. i didn't watch the data
 carefuly. but you should be glad that  you found out yourself. ;)

Posted on 2001-06-03 15:14:00 by disease_2000