Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Problem in adding ehlapi.dll reference in VB.NET

Problem in adding ehlapi.dll reference in VB.NET

Problem in adding ehlapi.dll reference in VB.NET


I'm working on a project where we capture the mainframe screens using attachmate EXTRA. So i ve a free version of EXTRA.
I have added extra.tlb as reference in my project but when i try to add any dll within EXTRA then it throws an error saying
"Please make sure that the file is accessible and that it is a valid assembly or COM component."

 Does extra.tlb contain all the functions present in DLL's?
could you please help me resolve dis problem?

RE: Problem in adding ehlapi.dll reference in VB.NET

The COM component should be able to do everything that's possible with HLAPI plus have the added functionality of being able to manipulate the Extra and Session settings.

If you want to use ehlapi.dll, then you would call to it the same way you do for any unmanaged DLL (e.g. kernel32).


Imports System.Runtime.InteropServices

Public Module kernel32

  Private Const MAX_PATH As Integer = 260

  <DllImport("kernel32.dll", CharSet:=CharSet.Auto)> _
  Private Function GetShortPathName( _
    ByVal lpszLongPath As String, _
    ByVal lpszShortPath As Text.StringBuilder, _
    ByVal cchBuffer As Integer) As Integer
  End Function

  Public Function GetShortPathName(ByVal longPath As String) As String
    Dim shortPath As New Text.StringBuilder(MAX_PATH)
    If GetShortPathName(longPath, shortPath, shortPath.Capacity) = 0 Then
      Throw New Kernel32Exception("Unable to GetShortPathName for " & longPath & ", the file or folder may not exist.")
    End If
    Return shortPath.ToString
  End Function

End Module

RE: Problem in adding ehlapi.dll reference in VB.NET


Thanks a lot. I have a new problem now. Is there any function in attachmate EXTRA! to get the total field count of the screen or to get only the unprotected fields?

Also I would like to know how to get the unique screen identifier of a screen.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close