The information in this article applies to:
SYMPTOMSCompiling the sample code below from the Visual Workbench in Visual C++ version 1.0 or an MS-DOS prompt under Windows causes the compiler to hang with no error messages being displayed. If the sample code is compiled under MS-DOS alone the following error occurs: Compiling the sample code with the compiler supplied with Visual C++ for Windows version 1.5 causes the compiler to generate the following error message: Compiling the sample code with the compiler supplied with Visual C++ for Windows NT causes the following error message:
CAUSEThe code being compiled is missing a closing brace on the switch statement. This may also occur in other situations where a closing brace is missing. For example, if the closing brace closes a function that is the last function in a file, the same errors occur. To illustrate, remove the closing brace from the CStroke::FinishStroke() member function in SCRIBDOC.CPP in step 5 of the scribble tutorial. RESOLUTIONFix the code by adding the missing closing brace. STATUSMicrosoft has confirmed this to be a bug in the products listed at the beginning of this article. This problem was corrected in C/C++ version 9.0, included with Visual C++ 32-bit Edition version 2.0. MORE INFORMATIONSample Code
Additional query words: 1.00 1.50 8.00 8.00c curly
Keywords : kbCompiler kbCPPonly kbVC |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |