...
Some functions require that your application be connected to a session before making the function call. If one of the function parameters is a "Session ID", then the function can be called on sessions that your application is not connected to. An example is the IWindow::GetCoordinates function that can be used to get window coordinates for any QWS3270 window. Other functions that do not have the "Session ID" parameter require that your application be connected to a QWS3270 session via a call to ISession::Connect before they can be used in your application. The function will then use the currently connected session. If you forget to connect to a session, you will most likely receive a return code from these functions that will resolve to "Not Connected". In this case connect your application to a valid QWS3270 session before calling the function again.
QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.
...