.if urname50 == myname
invoke lstrcpy,offset mynameaddie,offset addie50
.endif


Okay 'urname50' is a buffer that is about 1125 that currently has a name in it and 'myname' is where my name is in the program. This is not a protection scheme. Once I get it to work, it wont be just my name. What I want to do is if the two equal, copy whatever is in 'addie50' to 'mynameaddie'. Can anyone help with this? It says that the code:



.if urname50 == myname


is an invalid syntax of some kind. Any help is appreciated.

RIF
Posted on 2002-12-30 12:48:47 by resistance_is_futile
I think masm's macros are useful, but not THAT powerful. You can compare two values (or a value with a register?), but you can't compare two strings without coding your own string compare function. I'm sure you'll find plenty of examples if you do a search in the forum.
Posted on 2002-12-30 14:32:12 by El_Choni
MS has StrCmp and StrCmpI API functions to compare strings
Posted on 2002-12-30 14:36:30 by Hiroshimator

MS has StrCmp and StrCmpI API functions to compare strings


its called "lstrcmp" and "lstrcmpi" :P
Posted on 2002-12-30 16:05:51 by bazik
okay thx it worked guys...I cant believe i missed that...
Posted on 2002-12-30 19:43:57 by resistance_is_futile