The information in this article applies to:
SYMPTOMSWhen Microsoft C/C++ compiles a source code file that has the .CPP or .CXX filename extension, the compiler does not generate any C4051 warning messages. However, when Microsoft C/C++ compiles a source code file that contains similar code but that has the .C filename extension, the compiler correctly generates C4051 warning messages as follows:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual C++ 32-bit Edition version 2.0. MORE INFORMATION
According to the online help, the C4051 warning indicates that two
data items in an expression have different base types. In the process
of converting one of the items, it was truncated. To avoid this
warning, cast the data item to an appropriate data type. Sample Code
Additional query words: 1.00 1.50 7.00 8.00 8.00c
Keywords : kbCompiler kbCPPonly kbVC |
Last Reviewed: September 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |