Vcl.OleServer.TOleServer.ConnectEvents
Delphi
procedure ConnectEvents(const Obj: IUnknown);
C++
void __fastcall ConnectEvents(const System::_di_IInterface Obj);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.OleServer.pas Vcl.OleServer.hpp |
Vcl.OleServer | TOleServer |
Description
Establishes a connection using the EventDispatch property as an event sink.
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.