Look at MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/string/strchr.asp
It's simple enough - invoke StrChr,addr string_in_which_you_search,addr char_you_search_for
/siddhartha
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/string/strchr.asp
It's simple enough - invoke StrChr,addr string_in_which_you_search,addr char_you_search_for
/siddhartha
Why not use
rep scasb
rep scasb
Look at MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/string/strchr.asp
It's simple enough - invoke StrChr,addr string_in_which_you_search,addr char_you_search_for
/siddhartha
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/string/strchr.asp
It's simple enough - invoke StrChr,addr string_in_which_you_search,addr char_you_search_for
/siddhartha
but when i try this fun, it said no this fun,
am I don't include some lib ?
and StrChr is in what lib?
thanks
also i think u make a mistake
not
addr char_you_search_for
TCHAR wMatch
not address,
not
addr char_you_search_for
TCHAR wMatch
not address,
jndk,
Look at the end of the thread pointed to by the link below. MFNDCHR will find the first occurrence of several characters within a string. Ratch
http://www.masmforum.com/simple/index.php?topic=170.30
Look at the end of the thread pointed to by the link below. MFNDCHR will find the first occurrence of several characters within a string. Ratch
http://www.masmforum.com/simple/index.php?topic=170.30
it is declared in shlwapi.lib
or you can find it in all crt dlls viz (msvcrt.dll.etc)
here is a working code that will show the string from the wMatch position
.386
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
include \masm32\include\shlwapi.inc
includelib \masm32\lib\shlwapi.lib
.data
MsgCaption db "Iczelion's tutorial no.2",0
wMatch db "'",0 ; looks for single quote viz '
.code
start:
invoke StrChr,addr MsgCaption, dword ptr ds:
invoke MessageBox,NULL,eax,addr MsgCaption,NULL
invoke ExitProcess,NULL
end start
or you can find it in all crt dlls viz (msvcrt.dll.etc)
here is a working code that will show the string from the wMatch position
.386
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
include \masm32\include\shlwapi.inc
includelib \masm32\lib\shlwapi.lib
.data
MsgCaption db "Iczelion's tutorial no.2",0
wMatch db "'",0 ; looks for single quote viz '
.code
start:
invoke StrChr,addr MsgCaption, dword ptr ds:
invoke MessageBox,NULL,eax,addr MsgCaption,NULL
invoke ExitProcess,NULL
end start
There must be an equivalent function in masm32.lib