How do i convert this to asm-
int iStatusWidths[] = {200, 300, -1}
Thnaks in advance.
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
You're correct. You could also have done :
iStatusWidths sdword 200, 300, -1 ; because int are signed
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!
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
I thought 'dw' was used to define a double word. It's better to use long type name (byte, word, dword etc.)
that's what i thought too! honestly. i didn't watch the data
carefuly. but you should be glad that you found out yourself. ;)