The information in this article applies to:
SYMPTOMSIn ClassView, an interface node inside a class that implements the interface does not contain all of the interface methods. Instead, one or more of the methods appears as regular class member functions. CAUSEThe misplaced method contains at least one parameter that is mismatched with the data type specified in the interface description. This may occur when using logically equivalent types, or when "struct" or "class" is specified as part of a parameter's data type. RESOLUTIONIf the method contains logically equivalent types, edit the interface's .idl file or the class's .h file so the declarations match exactly. For example, if the .idl file contains the method
and the .h file declares the implementation method as
modify the PBYTE in the .h file to read BYTE *.If the .idl file explicitly specifies a class or structure in a parameter type declaration, modify the declaration to use a typedef equivalent. For example, instead of
use the following:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONEven though two types are logically equivalent, ClassView sees them as different since the syntax is different. If the .idl file explicitly specifies a class or structure in a parameter type declaration, a bug in ClassView's parser strips the word "class" or "struct" from the declaration. Since in either of these cases the interface and implementation declarations no longer match according to ClassView, it displays the method outside of the interface. Steps to Reproduce Behavior
REFERENCESFor additional information concerning ClassView's display, click the article numbers below to view the articles in the Microsoft Knowledge Base: Q201097 PRB: ClassView Does Not Display COM Interface Nodes Q138953 BUG: Static Identifiers Do Not Show Up in ClassView Q194840 BUG: The '*' Key Does Not Expand All ClassView Branches Properly Q167905 HOWTO: Exclude Include File Class Definitions from ClassView Q140439 FIX: Namespace Scoped Classes Don't Show Up in ClassView Additional query words:
Keywords : kbwizard kbClassView kbide kbVC600bug kbDSupport kbGrpDSTools |
Last Reviewed: January 21, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |