FIX: Compiler Errors with COleDateTime::FormatLast reviewed: September 19, 1997Article ID: Q153292 |
4.00 4.10
WINDOWS NT
kbprg kbfixlist kbbuglist
The information in this article applies to:
SYMPTOMSWhen calling the COleDateTime::Format member function with VAR_DATEVALUEONLY or VAR_TIMEVALUEONLY, you will get the following compiler error:
error C2668: 'Format' : ambiguous call to overload function (new behaviour; please see help) CAUSEThe problem is caused by not defining VAR_DATEVALUEONLY and VAR_TIMEVALUEONLY as DWORD in Oleauto.h.
RESOLUTIONThe workaround is to type cast these constants to DWORD.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual C++ version 4.2.
|
Additional reference words: 4.00 4.00 4.10 4.10 vcbuglist400 vcfixlist420
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |