In This Topic
This sample program creates a completely new host session that is visible in the workspace
To create a new session
- In Visual Studio, create a new Console Application project and add references for the following InfoConnect assemblies. (Depending on your version of Visual Studio, these can be found either on the .NET tab or under Assemblies | Extensions.)
Attachmate.Reflection.Framework
Attachmate.Reflection.Emulation.IbmHosts
Attachmate.Reflection.Emulation.OpenSystems
Attachmate.Reflection
- If you are using an ALC, UTS, or T27 terminal, create a session path. This sample uses the following path IDs:
ALC: UPDFRAD
UTS: INT1_1
T27: TCPA_1
- Replace all the code in the Program.cs file with the following code for the terminal you are using.
-
If you are using OpenSystems, change the placeholder value "YourHostName" to the host name or IP address for your system.
To test this project
- Press F5 to run the project and verify that the session opens.