masta is using in his tut this in tasm
new_val db "_masta_" ;new values
len equ $-new_val ;how many values (length)
;org_val and new_val must be equal
is it than in masm syntax possible to use also ?
SIZEOF new_val
No, SIZEOF is used with STRUCT's, since they have a begining and end MASM can determine the # of bytes within. However, MASM doesnt know the intention of the varible 'new_val' and thus shouldnt assume the null terminator '0' is the end of the data pointed at by 'new_val'. IE] if 'new_val' pointed to bitmap data, the returned value (under this assumption) would be very wrong.
Use the M32LIB command:
invoke StrLen, addr new_val
NaN
thanx a lot NaN
iŽll try that
hm haha damn everythin is crashin :)
so same prob like before