Connect(Client As Object) As Integer

Application object

This is a callback function that is normally called by remote clients that want to connect to a ReadSoft Invoices module, such as a supervision module. When this function is called, the AppConnect event is fired, and the return value from the handler is passed back to the connecting client.

The return value is normally EV_OK (0), which indicates that the connection was accepted. The Client parameter should be the IDispatch interface of the connecting object.

Note If you return evtError on the Connect method in your code, you must remove all references to the application object before doing so. Failure to do so can crash the application.

Related topic

The Application object