The information in this article applies to:
SUMMARY
With the Microsoft Macro Assembler (MASM), if a structure type is
declared but no instance of the structure is ever defined, the
assembler will still permit access to the structure.
MORE INFORMATIONThe sample code below illustrates this situation. The example declares an "animal" structure type, but does not define an instance of the structure. A reference to this structure type is then made in the following line:
As described above, the reference to animal.dog just generates the
offset of the field, dog, from the beginning of the structure;
therefore, this line is effectively the same as the statement "mov ax,
2".
Sample Code
Additional query words: kbinf 5.10 5.10a 6.00 6.00a 6.00b
Keywords : |
Last Reviewed: January 4, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |