RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TShellNameSpace.Connect Method

Establishes a connection to the COM server.

Pascal
procedure Connect; override;
C++
virtual __fastcall Connect();

Call Connect to connect the Connect component to the COM server it represents. If the AutoConnect property is True true, the Connect component automatically calls Connect when the application is first run. 

Do not use Connect if the value of ConnectKind is ckAttachToInterface. When attaching to an interface, use the ConnectTo method, which is introduced by descendant classes, instead. 

If the value of ConnectKind is ckRemote, the RemoteMachineName property must be set before calling Connect. 

Connect introduces Connect as an abstract a pure virtual method. Descendant classes must override this method to let the Connect component connect to a specific type of COM server. 

 

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