I need help again
I try to use this : invoke lstrcat, ADDR buffer, ADDR zrstr
In the buffer "Fernand" and i try to insert a zero terminator at the end of Fernand :tongue:
I try to use this : invoke lstrcat, ADDR buffer, ADDR zrstr
In the buffer "Fernand" and i try to insert a zero terminator at the end of Fernand :tongue:
is buffer NUL terminated? If not, then it will fail because lstrcat searches for the NUL terminator to find the end of the string.
Straight off the top of my head, you zero the buffer first.
Then you can append what you like to the end of it as long as each string is zero terminated.
Regards,
hutch@movsd.com
mov esi, offset buffer
mov DWORD PTR [esi], 0
Then you can append what you like to the end of it as long as each string is zero terminated.
Regards,
hutch@movsd.com
geez. you're an assembly coder and you do wasteful code like that?
"mov byte ptr , 0" will suffice for ASCIZ strings.
"mov byte ptr , 0" will suffice for ASCIZ strings.
f0dder, hutch-- and Cie thanks for your help....
I know, my code is wasteful but I try to learn it....I am just a beginner in asm...:confused:
I know, my code is wasteful but I try to learn it....I am just a beginner in asm...:confused:
fernand I was poking hutch, not you :)
Fernand,
You can try also my example for strcat.
http://www.asmcommunity.net/board/index.php?topic=10389&highlight=strcat
Regards,
Vortex
You can try also my example for strcat.
http://www.asmcommunity.net/board/index.php?topic=10389&highlight=strcat
Regards,
Vortex