The information in this article applies to:
SYMPTOMSWhen you build an ATL project, you may get the following compiler error:
CAUSEIn Visual C++ 6.0, a templated version of QueryInterface(), which takes one parameter (instead of the usual two), was added to IUnknown. In ATL 3.0, CComTypeInfoHolder::GetTI() uses this templated version of QueryInterface(). If you have an older version of Unknwn.h in your Include path, you get this compiler error. For example, having the Platform SDK Include directory in front of the \VC98\Include directory causes this problem. RESOLUTIONReplace the Unknwn.h in the other Include directory with the one from the Visual C++ 6.0 Include directory. STATUSThis behavior is by design. REFERENCES(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Samson Tanrena, Microsoft Corporation. Additional query words:
Keywords : kberrmsg kbtemplate kbCOMt kbVC600 kbATL300 kbfaq kbGrpMFCATL |
Last Reviewed: January 19, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |