DanFocus10 Absent Member.
Absent Member.
1668 views

Convert simple Extra.Interop to Attachmate.Reflection

I was able to check running sessions in old attachmate using the following VB.NET code:

1. Add reference to Interop.EXTRA.dll
2. Public Class Form1
Private exSystem As EXTRA.ExtraSystem
Private exSessions As EXTRA.ExtraSessions
Private SessList As ArrayList

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
exSystem = New EXTRA.ExtraSystem
exSessions = exSystem.Sessions
For x As Integer = 1 To exSessions.Count
'do something here
Next
End Sub
End Class

How can I achieve the same with Attachmate.Reflection?
0 Likes
2 Replies
AutomaticReply Absent Member.
Absent Member.

Re: Convert simple Extra.Interop to Attachmate.Reflection

DanFocus10,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue
is urgent or not getting a response, you might try one of the following options:

- Visit https://www.microfocus.com/support-and-services and search the knowledgebase and/or check
all the other self support options and support programs available.
- Open a service request: https://www.microfocus.com/support
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.microfocus.com)
- You might consider hiring a local partner to assist you.
https://www.partnernetprogram.com/partnerfinder/find.html

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.microfocus.com/faq.php

Sometimes this automatic posting will alert someone that can respond.

If this is a reply to a duplicate posting or otherwise posted in error, please
ignore and accept our apologies and rest assured we will issue a stern reprimand
to our posting bot.

Good luck!

Your Micro Focus Forums Team
http://forums.microfocus.com



0 Likes
TomFitz Absent Member.
Absent Member.

Re: Convert simple Extra.Interop to Attachmate.Reflection

Hi Dan,

we have an new ExtraCOM dll in Reflection which provide API access using the legacy Extra! COM interface, you can add a reference to EXTRACOM in your VS VB.Net project and you should get most of what you are used to.

e.g.
Public Class Form1

Private exSystem As EXTRACOM.ExtraSystem
Private exSessions As EXTRACOM.ExtraSessions
Private SessList As ArrayList
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
exSystem = New EXTRACOM.ExtraSystem
exSessions = exSystem.Sessions
For x As Integer = 1 To exSessions.Count
MsgBox(exSessions.Item(x).FullName)
Next
End Sub
End Class

One important thing to note here is that if you are using Printer sessions these will not appear, as we have no API support for legacy Extra! printer sessions.

Tom
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.