I, I always get seldom errors, while using InString. - What can I do ?

Something wrong with my code ?:

INVOKE InString, 1, ADDR mString, ADDR sString
;MessageBox : Substring was foundable....

Posted on 2003-08-19 16:53:07 by Bubu-Boy
last two parameters needs the addresses. Check your last parameter. And no need to "SDWORD"
Posted on 2003-08-19 17:41:54 by cakmak
It was just a typo.

How to you use InString ?

Posted on 2003-08-20 02:03:17 by Bubu-Boy
I created a little demo. Try it, if didnt understand, ask here.
Posted on 2003-08-21 04:54:55 by cakmak
hi thanks...

I cant check whether the substring exists in the main string.
I tryed .IF EAX > 0 and something else, but it dont work correctly.

I heard about a bug in the InString routine...

Posted on 2003-08-21 07:19:22 by Bubu-Boy
As i tested in my system(w98) eax returns "5". Because, returning value is "1" indexed an in ItsyBitsy string Bitsy is 5th sequence.

After opening the project rebuild an run it. Then RadAsm's debug dialog must pop and show the registers. Since we breaked after invoke, though EAX is equal to 5. Else, i dont know about the bug. I can not get the error.
Posted on 2003-08-22 04:14:06 by cakmak