i need to compare strings passed to a macro
case insensitive or case sensitive
like this:
i need that strcmp, can anyone help?
i tried something using @InStr but failed
FORC... maybe?
p.s. i'm a begginer
case insensitive or case sensitive
like this:
mymacro MACRO str1,str2
IF @StrCmp(str1,str2) EQ 0 ; ?
...
ELSE
...
ENDIF
ENDM
i need that strcmp, can anyone help?
i tried something using @InStr but failed
FORC... maybe?
p.s. i'm a begginer
You could try
lstrcmp equ <lstrcmpA>
lstrcmpA PROTO :DWORD,:DWORD
In kernel32.inc
Have fun...
Newbie trying to help, watch out! ;)
Ka.
lstrcmp equ <lstrcmpA>
lstrcmpA PROTO :DWORD,:DWORD
In kernel32.inc
Have fun...
Newbie trying to help, watch out! ;)
Ka.
i knew it,i found the answer rigth after i posted
IFDIF is what i need, grrr
thanks for trying KaSt
IFDIF is what i need, grrr
thanks for trying KaSt
the IF* instruction does compares at ASSEMBLY TIME.
the lstrcmp routines do the compare at RUN TIME.
BTW learning macros is fun!!
the lstrcmp routines do the compare at RUN TIME.
BTW learning macros is fun!!
Hi AmkG
What do you mean by ASSEMBLY TIME, versus RUNTIME :confused:
Regards,
What do you mean by ASSEMBLY TIME, versus RUNTIME :confused:
Regards,
ASSEMBLY TIME : when the source code is being assembled
RUNTIME: when the executable is run
RUNTIME: when the executable is run
Hi MArtial_Code
yeah, I see what you mean :alright:
yeah, I see what you mean :alright: