in reply to Re: need help while calling C++ Dll from Perl using Win32Api
in thread need help while calling C++ Dll from Perl using Win32Api

Hi, Iam using Active perl Windows to execute the perl script.
Here i download the Win32::API from CPAN directly.
Downloaded strawberry-perl-5.8.8-alpha-1.exe and installed in my PC.
strawberry-perl-5.8.8-alpha-1.exe perl got installed in c:\Strawberry-perl.
When i copied the required files to C:\strawberry-perl\perl\bin.
when i executed my Test.pl script from cmd line error pops up saying :
C:\strawberry-perl\perl\bin>perl Test.pl
Can't locate loadable object for module Win32::API in @INC (@INC contains: C:/strawberry-perl/perl/lib C:/strawberry-perl/perl/site/lib .) at Test.pl line 6
Compilation failed in require at Test.pl line 6.
BEGIN failed--compilation aborted at Test.pl line 6.
The above intreputs that Win32::API module is not downloaded
Should i download Win32::API from CPAN or is it Downloaded during installation of strawberry-perl
  • Comment on Re^2: need help while calling C++ Dll from Perl using Win32Api

Replies are listed 'Best First'.
Re^3: need help while calling C++ Dll from Perl using Win32Api
by Anonymous Monk on Mar 03, 2009 at 12:20 UTC
    When i copied the required files to C:\strawberry-perl\perl\bin.
    What files? All you should need is
    C:\>cpanp i Win32::API
    to install Win32::API