The information in this article applies to:
SYMPTOMSWhen rebuilding the DAO SDK that ships with Visual C++ 4.2, you will receive numerous C2374 errors compiling the DBDAO.CPP file: where <Interface> is a number of OLE interfaces defined within OLECTLID.H. CAUSE
The \MSDEV\DAOSDK\SRC\STDAFX.H file that ships with the DAO SDK is
incorrect. When rebuilding the DAO SDK DLL's, DBDAO.CPP includes its own
STDAFX.H, which also includes AFXDISP.H and OLECTLID.H. However, AFXDISP.H
has already included OLECTLID.H, creating the redefinition.
RESOLUTIONEdit the \MSDEV\DAOSDK\SRC\STDAFX.H file to remove the explicit reference to OLECTLID.H. The final version of the file should look like this:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. Additional query words:
Keywords : kbDAO |
Last Reviewed: January 31, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |