View Single Post
Old Jan 28th, 2005, 5:35 PM   #5
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Error 53 is from Visual Basic and it means it can't find your DLL. It must be located in one of two places - the %systemroot% (windows\system32 for NT) or the same folder as the executable. If running within VB, it must be in the same folder as the project ('vbp') file. Try adding the line chdir(app.path) before you call the function. If that still doesn't work, try replacing the Lib field with the absolute path to see if that works.

There doesn't appear to be any conventional way of dynamically assigning the Lib field at run-time - it must be a string constant - if your problems still persist, I'd recommend using COM instead of __stdcall, as CreateObject() in VB is much more flexible (and up to date).

Hope this helps
Rory is offline   Reply With Quote