in reply to Re^2: Need to have win32::API module compatible with perl 5.6.1.635
in thread Need to have win32::API module compatible with perl 5.6.1.635

I'm sorry, I meant to say "The PPM files you downloaded" were for another version of Perl.

You install Win32::API like you install any other Perl module:

C:\>cpan Win32::API

or alternatively, download and unpack Win32::API:

C:\> cpan cpan> look Win32::API C:\...>perl Makefile.PL C:\...>perl -V:make C:\...>dmake C:\...>dmake test C:\...>dmake install

Depending on the output of perl -V:make you might need to use a different program than dmake. Most likely that is nmake.

See A guide to installing modules for Win32 for example.

Replies are listed 'Best First'.
Re^4: Need to have win32::API module compatible with perl 5.6.1.635
by PerlRider (Initiate) on Jan 15, 2013 at 09:27 UTC

    Hi Corion, Thanks for the reply.. Actually I need to install win32::API module on a PC where MS Visual Studio is not installed and the perl version is 5.6.1.635. So, I downloaded win32-API module into my local PC where VS and perl 5.12 are installed and compiled by giving following commands: 1)perl Makefile.PL 2)nmake 3)make blib folder as Tar.gz file 4)nmake ppd After Compilation is done, I moved this tar file to destination PC and run below command: 1)ppm install Win32-API.ppd Here from your reply I am expecting that, since I compiled with perl version 5.12, I am getting the error. Isn't it? I will try with perl version 5.6 and post the results. Thanks

      "After Compilation is done, I moved this tar file to destination PC and run below command:"

      A guide to installing modules for Win32, which touches on binary compatibility. This isn't going to work. I can't help feeling we're going round in circles. You need to spend the time to read and understand the responses you've been given.

      So, I downloaded win32-API module into my local PC where VS and perl 5.12 are installed and compiled by giving following commands:

      That is not going to work, as you've been previously advised

      Why do things which have zero chance of working?

      That will never work. A Perl DLL made for one version of Perl is NOT compatible with any other version of Perl. You have to install 5.6.1.635 on the computer with Visual C/Studio. Then compile the module. Then copy it to the original computer with 5.6.1.635.

        Hi, Becuase of zero experience or no patience, I am not able to complete my task. I installed win32::API module onto perl 5.6.1.635 version. But when I tried to run the application using this module, I endup with strnage error: The application has failed to start because "COREDLL.dll was not found". I tried to search for the COREDLL.dll in pc but no use. :-(