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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

module installation - Win32::API 1

Status
Not open for further replies.

snookmz

Programmer
Apr 17, 2001
46
AU
G'day all

there are two parts to my question ("why not post two seperate questions??" because it's the same question in two parts!) :)

Im trying to use the Win32::API module to reference a Win32 dll, only im not sure that i have installed the module correctly.. I have put the module in the 'lib directory, in a Win32 dir under the lib dir ( i have also run nmake on it).. which is the correct place for it, and when i try to call it i get the error:

"can't locate loadable object for module Win32::API in @INC"

now i assume perl cannot find the module, but could it be that im not calling it properly in my script??

any help will be grately appreciated, thanks in advance
 
try using ppm (comes with activestate perl) to install it, but for an immediate fix, just include this line before trying to 'use Win32::API':[tt]
use lib('c:/path/to/the/module.pm');[/tt]

i'm pretty sure forward slashes will work in this case, otherwise you can use escaped backslashes ('\\').
"If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
Very helpfull

Thank you for your invaluable help stillflame, i hope good karma comes your way as you deserve it :)

thanks again

snookmz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top