RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TConnectionPoints.CreateConnectionPoint Method

Instantiates a connection point object.

Pascal
function CreateConnectionPoint(const IID: TGUID; Kind: TConnectionKind; OnConnect: TConnectEvent): TConnectionPoint;
C++
__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. 

 

Advise 

Initialize 

Create

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!