i need to compare strings passed to a macro
case insensitive or case sensitive
like this:

mymacro MACRO str1,str2
IF @StrCmp(str1,str2) EQ 0 ; ?


i need that strcmp, can anyone help?
i tried something using @InStr but failed
FORC... maybe?

p.s. i'm a begginer
Posted on 2003-02-20 18:00:39 by drizz
You could try
lstrcmp equ <lstrcmpA>

In kernel32.inc

Have fun...

Newbie trying to help, watch out! ;)

Posted on 2003-02-20 18:11:08 by KaSt
i knew it,i found the answer rigth after i posted

IFDIF is what i need, grrr

thanks for trying KaSt
Posted on 2003-02-20 18:50:42 by drizz
the IF* instruction does compares at ASSEMBLY TIME.

the lstrcmp routines do the compare at RUN TIME.

BTW learning macros is fun!!
Posted on 2003-02-21 02:26:41 by AmkG
Hi AmkG

What do you mean by ASSEMBLY TIME, versus RUNTIME :confused:

Posted on 2003-02-21 04:44:39 by The SharK
ASSEMBLY TIME : when the source code is being assembled
RUNTIME: when the executable is run
Posted on 2003-02-21 06:03:33 by MArtial_Code
Hi MArtial_Code

yeah, I see what you mean :alright:
Posted on 2003-02-21 07:06:39 by The SharK