Article ID: 115705 - Last Review: July 5, 2005 - Revision: 2.1 FIX: Function Style Conversion Incorrectly Generates ErrorsThis article was previously published under Q115705 On This PageSYMPTOMS
When calling a class conversion function within a macro, as shown in the
code below, the compiler may incorrectly generate the following errors:
error C2061: syntax error : identifier 'timeVal' error C2066: cast to function type is illegal error C2059: syntax error : ')' RESOLUTION
Following are two possible workarounds for this problem:
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This problem was corrected in Microsoft Visual C++ .NET. MORE INFORMATION
The following sample code demonstrates this problem.
Sample CodeAPPLIES TO
| Article Translations
|

Back to the top
