RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleServer.ConnectEvents Method

Establishes a connection using the EventDispatch property as an event sink.

Pascal
procedure ConnectEvents(const Obj: IUnknown);
C++
__fastcall ConnectEvents(const IUnknown Obj);

ConnectEvents descendants use ConnectEvents internally to implement their event handlers for events on the COM server. If the ConnectEvents descendant does not expose any server events, ConnectEvents is not used. 

The Obj parameter is an interface for the COM server that generates events. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!