Hey, i was wondering if there's a command to find a certain word in a sentence.
Like i have this sentence stored in a variable: "Hello this is just some text, and some more bla bla"
Now i want to find the word "text" in this sentence.
Is there such a function that i can use to find words?
Thanks for any help
Like i have this sentence stored in a variable: "Hello this is just some text, and some more bla bla"
Now i want to find the word "text" in this sentence.
Is there such a function that i can use to find words?
Thanks for any help
i assume you're talking about windows. some common controls have such functionality, C++ runtime has such also, and it's generalized.
Check this out:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/string/string.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/string/string.asp
masm32 lib InString , InStringX, and equivalents.
masm32 lib InString , InStringX, and equivalents.
I looked for InString and InStringx for ASM but i couldnt find any examples.
And also another thing, i want to use the ASM function for this and implent the asm code into a C++ source code.
Dunno if all that is possible though?
But could someome pls show me how this is done.
Thanks for any help
if you're mixing languages, then i would suggest spliting the different languages into different routines, and call ASM function from C.
VOID myAsmFunction(DWORD param1) {
? ?__asm {
? ? ? mov eax,
? ? ? inc eax
? ? ? dec eax
? ?}
? ?return;
}
VOID myCppFuntion() {
? ?myAsmFunction(123456);
}
VOID myAsmFunction(DWORD param1) {
? ?__asm {
? ? ? mov eax,
? ? ? inc eax
? ? ? dec eax
? ?}
? ?return;
}
VOID myCppFuntion() {
? ?myAsmFunction(123456);
}