i keep getting that message for this code:


mov bleh,TVIF_HANDLE
or bleh,TVIF_STATE
or bleh,TVIF_TEXT
or bleh,TVIF_IMAGE
or bleh,TVIF_SELECTEDIMAGE
push bleh
pop tvstr.item.mask
mov tvstr.item.hItem,TVI_ROOT //this is the line that produces the error


whats wrong with that??

thanks
Posted on 2003-05-17 19:38:09 by AnotherWay83
Its imask, not mask.
Posted on 2003-05-17 19:52:46 by comrade
hmm thats really strange, the Win32.hlp file that i have shows that it is 'mask'...anyway i'll try what u say
Posted on 2003-05-17 20:11:22 by AnotherWay83
mask is reserved keyword in MASM, so imask is used in windows.inc.
Posted on 2003-05-17 20:23:54 by comrade
you were right...i looked it up in windows.inc and it was there :D

fanks!
Posted on 2003-05-18 00:06:21 by AnotherWay83

i keep getting that message for this code:
mov bleh,TVIF_HANDLE
or bleh,TVIF_STATE
or bleh,TVIF_TEXT
or bleh,TVIF_IMAGE
or bleh,TVIF_SELECTEDIMAGE
push bleh
pop tvstr.item.mask
mov tvstr.item.hItem,TVI_ROOT //this is the line that produces the error

Instead of using 6 additional opcodes to calculate a value, you can just calculate the value at compile time (The result of the calculation is always the same, there's no need to calculate that at runtime):



mov tvstr.item.imask, TVIF_HANDLE or TVIF_STATE or TVIF_TEXT or TVIF_IMAGE or TVIF_SELECTEDIMAGE
mov tvstr.item.hItem, TVI_ROOT


Thomas
Posted on 2003-05-18 03:00:07 by Thomas