Article ID: 201097
Article Last Modified on 12/11/2003
APPLIES TO
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ 6.0 Standard Edition
This article was previously published under Q201097
SYMPTOMS
When you add COM_INTERFACE_ENTRY(IMyIF) to the COM map in a class, a corresponding interface node does not appear on the class in ClassView.
CAUSE
There is no interface declaration for IMyIF in the project's .idl file, or the .idl file has not been saved with that declaration. This is per the current design of ClassView.
RESOLUTION
Add the interface declaration to the project's .idl file and save it. In Visual C++ 6.0, the interface node will immediately appear on the class in ClassView.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
REFERENCES
For additional information on the ?_COM_MAP macros, see the following documentation:
- MSDN library for VC++ 5.0:
Visual C++; C/C++ Language and C++ Libraries; Active Template Library; Class Reference; ATL Macros and Global Functions; "BEGIN_COM_MAP"
- MSDN library for VC++ 6:
Visual C++ Documentation; Reference; Microsoft Foundation Class Library
and Templates; Active Template Library; Class Reference; ATL Macros and
Global Functions; "BEGIN_COM_MAP"
Keywords: kbbug kbnoupdate kbide kbclassview kbprb kbwizard KB201097