Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.DLL not found?

Status
Not open for further replies.

Vexaxix

Programmer
Sep 24, 2003
13
CA
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top