RAD Studio VCL Reference
TConnectionPoints.CreateConnectionPoint Method

Instantiates a connection point object.

function CreateConnectionPoint(const IID: TGUID; Kind: TConnectionKind; OnConnect: TConnectEvent): TConnectionPoint;
__fastcall TConnectionPoint CreateConnectionPoint(const TGUID IID, TConnectionKind Kind, TConnectEvent OnConnect);

CreateConnectionPoint is automatically called when an ActiveX control is initialized. CreateConnectionPoint creates and returns a connection point object. It passes to the connection point constructor:

  • Itself as the connection point container.
  • IID as the GUID or interface identifier of the outgoing interface managed by this connection point.
  • OnConnect as the connection event used in the IConnectionPoint Advise method.

TConnectEvent is a pointer to a procedure for the OnConnect event of the connection point object being created. TConnectionKind is a type indicating whether there are multiple connections to that connection point. 


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