The information in this article applies to:
SYMPTOMS
Compiling code with a default argument for a string parameter in a function declaration results in the following:
CAUSEThis bug was introduced in Visual Studio 97 Service Pack 3. It was not in earlier versions of Visual C++ 5.0. RESOLUTIONEither upgrade to Visual C++ 6.0, or define a string in the file before the function declaration. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article. MORE INFORMATION
The following sample code demonstrates the problem and the workaround:
Note that the empty string declaration must be in the same translation unit as the function declaration.
Additional query words:
Keywords : kbVS97sp3bug |
Last Reviewed: March 12, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |