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.
In reply to Re: Calling a function from an external DLL with Win32::API on windows: paranormal activity
by ikegami
in thread Calling a function from an external DLL with Win32::API on windows: paranormal activity
by kikuchiyo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |