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
Posted on 2001-05-02 09:48:00 by i_dunno
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
Posted on 2001-05-02 13:55:00 by NaN
thanx a lot NaN iŽll try that
Posted on 2001-05-02 16:15:00 by i_dunno
hm haha damn everythin is crashin :) so same prob like before
Posted on 2001-05-02 16:38:00 by i_dunno