I am trying to access the attachmate whlapi32.dll (running Extra 6.7) from excel.
I can access the functions in the api from the extra macro editor without a problem, but i get a file not found (53 not 48) error when trying to access them from VBA.
I am declaring as follows:
Public Declare Sub WinHLLAPI Lib "whlapi32.dll" (Func%, ByVal HllDataStr$, HllDataLgth%, PsPos%)
Public Declare Function WinHLLAPIStartup Lib "whlapi32.dll" (ByVal version%, ByVal Buffer$) As Long
Public Declare Function WinHLLAPICleanup Lib "whlapi32.dll" () As Long
Then the first time I call I am using:
WinHLLAPIStartup 257, Space(100)
On the call I get the file not found. I have also tried declaring WinHLLAPI as a function.
Any thoughts?
Thanks!
I can access the functions in the api from the extra macro editor without a problem, but i get a file not found (53 not 48) error when trying to access them from VBA.
I am declaring as follows:
Public Declare Sub WinHLLAPI Lib "whlapi32.dll" (Func%, ByVal HllDataStr$, HllDataLgth%, PsPos%)
Public Declare Function WinHLLAPIStartup Lib "whlapi32.dll" (ByVal version%, ByVal Buffer$) As Long
Public Declare Function WinHLLAPICleanup Lib "whlapi32.dll" () As Long
Then the first time I call I am using:
WinHLLAPIStartup 257, Space(100)
On the call I get the file not found. I have also tried declaring WinHLLAPI as a function.
Any thoughts?
Thanks!