The information in this article applies to:
SYMPTOMSBecause an enumerated type is handled internally the same as a short type, certain compiler error messages may refer to a "short" even though the error involves an "enum". The following sample code contains an error to demonstrate this situation:
When the above code is compiled with the Microsoft C compiler, the
following error message is generated:
Visual C++ for Windows and Visual C++ 32-bit Edition return: In this particular case, the error should say: However, the compiler does not keep track of whether or not an item was specified as an enum. STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article. This bug was corrected in Visual
C++ version 5.0.
Additional query words: 8.00 8.00c 9.00
Keywords : kbCompiler kbVC500fix |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |