RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDispatchConnection Class

TDispatchConnection is the base class for objects that connect client applications to an IDispatch-based application server.

Pascal
TDispatchConnection = class(TCustomRemoteServer);
C++
class TDispatchConnection : public TCustomRemoteServer;

Do not create instances of TDispatchConnection. Instead, use TDispatchConnection as a base class when creating a custom component that forms a connection to a COM-based application server in a multi-tiered database application. 

TDispatchConnection introduces the infrastructure for logging on to an application server, obtaining an IAppServer interface, calling the application server's interface, and managing a remote connection. Additionally, TCustomRemoteServer inherits the ability to work with one or more client datasets. 

TDispatchConnection is not capable of connecting to an application server. This ability is added by descendants, which are specialized for different connection types. Once a connection is formed, however, TDispatchConnection makes the application server's IAppServer interface available to TClientDataSet components. 

To enable a client application to connect to a COM-based application server, use a descendant of TDispatchConnection such as TSocketConnection, TWebConnection, or TDCOMConnection

 

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