I need a reminder how to do this. Also what a proper newline is. I think its character codes 0Dh and 0Ah.
Thanks.
If I correctly understand "preappending" to mean that the length precedes the string, I can't think of any non-clumsy method of using the $ operator. All three of these methods return the length of the string:
strlen1 dd SIZEOF astring
strlen2 dd endofstring - astring
astring db "my other brother darryl",13,10,0
endofstring equ $
strlen3 dd $ - astring
As a newline, for stdout (WriteFile, and I think also WriteConsole), and for at least most of the CRT display functions, you can use a LF or a CRLF. A MessageBox seems to accept either or both.
Thanks. What I'm trying to get is:
[size]"string"
I seem to remeber its the way PASCAL does strings.
ThoughtCriminal,
From memory you can allocate an OLE string and it reserves the 4bytes below the address for its size.