News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Space...

Started by kromag, February 01, 2009, 04:42:57 PM

Previous topic - Next topic

Tedd

Quote from: psault on February 02, 2009, 03:46:39 PM
If WPARAM is 32-bit storage, and you are storing a byte in the form of a space char, then the null terminating 0, that's only accounting for 16 bits.  I interpret what NightWare said about "stack usage" as having 16 more bits in the form of 0, 0 included in that storage for this "space string".

Am I close?

~psault
It creates a variable having the size of a WPARAM (i.e. a DWORD = 4 bytes = 32 bits) with the value of 20h (i.e. 00000020h).
Due to the way dwords are stored, the bytes will actually come out in memory as: 20h,00h,00h,00h
No snowflake in an avalanche feels responsible.

kromag

Thanks again Tedd; greatly appreciated :bg
---
William