asking for help on how to compare 2 strings.

one string can either be from the .data section i.e. myString db "TheString",0
or from a string resource file.

the other string comes from an edit control box.
Posted on 2002-12-13 16:55:40 by isotope
API: lstrcmp
Posted on 2002-12-13 17:01:06 by bazik
i will try that. thanks
Posted on 2002-12-13 17:20:18 by isotope
;// snippet

invoke lstrcmp,addr buffer, addr myString

;//if a match, lstrcmp returns a zero
.if eax == 0
;//do whatever
;//do whatever

check below for full example using masm32
Posted on 2002-12-14 15:38:32 by isotope