I am declaring and calling a dll function using the following syntax in VB6:
\'Declare the function Private Declare Sub MYFUNC Lib \"mylib.dll\" () \'Call t
The .dll must be in the current "working" directory (or registered), otherwise at run-time the application can't find it.
Do:
MsgBox "The current directory is " & CurDir
And then compare that with what you were expecting. The .dll would need to be in that directory.