Connects a client application to a server component. The client application must call ConnectToServer before it can use a remote object on the server. This function applies to distributed applications only.
Connection objects
connection.ConnectToServer ( )
Long. Returns 0 if it succeeds or a negative value if an error occurs.