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

Client.

See samples: Samples.

3/26/2024 1:49:49 PM

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.