The information in this article applies to:
SUMMARYMicrosoft CodeView versions 4.0 and later, which support debugging C++ programs, do not correctly evaluate functions that use default arguments. When an expression is used that requires CodeView to evaluate a function with a default argument, the following error message is displayed:
MORE INFORMATIONThe sample code below contains a function that has a default argument. In the program, the function PrintOut() can be called either with a void parameter list or with a character pointer. When the following command is executed from CodeView's command window
the function is called and "This is a string constant" is printed to
the output screen. When the function PrintOut() is called with no
parameters, for example
the error CXX0047 is generated. This occurs only when using the "?"
command in CodeView to force a function to be evaluated.
Default arguments are supported only in C++ programs. Sample Code
Additional query words: kbinf 4.00 4.10
Keywords : kbcode kberrmsg kbCodeView kbDebug kbVC |
Last Reviewed: October 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |