Hi,
I can't get my project going. I can not get handle on the Application object to manipulate the terminal.
The MyReflection.CreateApplication method throws: System.ApplicationException: 'Can not create the Application. Please check the API settings or use the proper MyReflection.Start().'
However I cant achieve any better results inserting MyReflection.Start() before that either.
Imports System Imports Attachmate.Reflection Imports Attachmate.Reflection.Framework Imports Attachmate.Reflection.Emulation.IbmHosts Imports Attachmate.Reflection.UserInterface Module Program Sub Main(args As String()) Dim app As Application Dim sessionpath As String app = MyReflection.CreateApplication() Dim terminals() As Object = app.GetControlsByFilePath(sessionpath) Dim terminal As IIbmTerminal = terminals(0) Console.WriteLine(terminal.Screen.GetText(6, 31, 10)) End Sub End Module
I dont know what API settings are referred, there is "Disable API" in Trust Center which is not checked
I would appreciate any help Thank you !
-Olavi
#.net
#API
#Reflection
#VisualStudio
#Desktop