in reply to Calling a function from an external DLL with Win32::API on windows: paranormal activity
I've tried Win32::API->Import first [...]. However, the script exited with an error message [...]. the other methods (Win32::API->new) were able to find the DLL and load the function from it.
You are mistaken. Win32::API->import simply calls Win32::API->new and sets up a means of calling ->Call. Either both methods work, or neither.
|
|---|