Connect Method of Client Object (COM-based API)
This method establishes a connection with the server.
If the server is inaccessible, the method creates an exception: COMException.
If a connection is established with a server that has been stopped, the following text is displayed in the exception: "ABBYY FineReader Server is not available: The client has successfully connected to the server, but the server is not running."
If there is no connection with the server, the following text is displayed in the exception: "ABBYY FineReader Server is not available: Unable to perform RPC call. The call recipient process is not started or its host is unavailable."
Visual Basic Syntax
Method Connect(
serverName As String
)
C++ Syntax
HRESULT Connect(
BSTR serverName
);
Parameters
serverName
[in] This parameter contains the DNS name of the server or its IP address.
Return Values
This method has no specific return values. It returns standard return values of ABBYY FineReader Server Open API functions.
See also
See samples: Samples.
26.03.2024 13:49:49