The information in this article applies to:
SYMPTOMSCompiling the sample code below with Visual C++ 32-bit Edition causes the compiler to generate the following error message: The compiler should instead generate the following error: Compiling the sample code with Visual C++, version 1.5, under Windows NT gives the following error message: Again, "error C2064: term does not evaluate to a function" should display. When the code below is compiled with Visual C++, versions 1.0 and 1.5 under Windows 3.1, no errors are generated. The compiler effectively ignores the erroneous line. If we compile at warning level 4 (CL /W4), the following warning is generated: This warning shows that the erroneous line was ignored. CAUSEIncorrectly compiled code uses parentheses () instead of brackets [] to denote array subscripts. RESOLUTIONFix the code by changing the parentheses to brackets. STATUSMicrosoft has confirmed this to be a bug in the products listed at the beginning of this article. This bug was corrected in C/C++ compiler version 9.0, included in Visual C++ 32-bit Edition, version 2.0. Sample Code
Additional query words: 1.00 1.50 8.00 8.00c
Keywords : kbCompiler kbCPPonly kbVC |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |