The information in this article applies to:
SYMPTOMSIConnectionPointContainer::FindConnectionPoint() might fail with the following error: In ATL, AtlAdivse() wraps this call and returns the previous error code. In MFC, AfxConnectionAdvise() wraps this call and returns FALSE on failure of this call. CAUSEThe ATL Object Wizard has an option to add connection point support to your COM object. This enables connection points for your COM object by deriving your object's class from IConnectionPointContainerImpl, adding a connection point map (BEGIN_CONNECTION_POINT_MAP / END_CONNECTION_POINT_MAP), and adding an event interface (dispinterface) definition to the .idl file and making it the default source interface for the COM object. However, the wizard does not add the event interface to the connection point map. RESOLUTIONAdd the CONNECTION_POINT_ENTRY to the connection point map manually. Prefix DIID_ to the event interface name to generate the IID for the entry. For example:
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. MORE INFORMATIONSteps to Reproduce Behavior
© Microsoft Corporation 1998, All Rights Reserved. Additional query words: IConnectionPointContainer IConnectionPoint
Keywords : kberrmsg kbwizard kbActiveX kbCOMt kbConnPts kbVC600bug kbATL300bug kbGrpMFCATL |
Last Reviewed: November 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |