Writing Your Own VB Application

  1. Create the .zcc file specifying the connection parameters using notepad.exe.

  2. Open a new project in Visual Basic either a standard.exe for test program or ActiveX Document.exe for the sample application (executable from a webserver).

  3. Add a reference to the PASSPORT Host Integration Objects Type Library in your project. This is done using the References... command on the Projects menu, finding the PASSPORT Host Integration Objects Type Library in the list box and checking it.

  4. Declare a reference to the Ohio objects(OhioSession etc) in the declarations section. Create a User Document(for Sample Application) or form(for Test Program).

  5. Create Object OhioSesions by using keyword New. Objects of type OhioSessions are the only objects in PassOhio that can be created using keyword New.

  6. Call Method AddSession of object OhioSessions specifying the Configuration Resource file. This method returns a OhioSession object.

  7. Call method Connect of object OhioSession to connect to the host. dependent. (We must open a session before connecting).

  8. Once it is connected(can be checked by OhioSession attribute IsConnected), object OhioScreen can be obtained from the OhioSession attribute Screen. Session must be connected to a host before calling any of the screen methods or attributes.

  9. The string attribute of OhioScreen can then be called to get the host screen text .

  10. The method Disconnect of OhioSession is called to stop the communication link to the host and method CloseSession of OhioSessions which closes an OhioSession object.

  11. Set the objects to Nothing before unloading the form.

  12. For sample application: Package the program into an internet package.