in reply to Re^8: Move/Copy files using Clipboard!
in thread Move/Copy files using Clipboard!

Now what?

Now, you need to

  • download Win32::Clipboard-052.tar.gz from cpan
  • put it into a directory
  • gunzip it
  • untar it
  • check that your compiler environment variables are set up (type set at the cmd prompt and look for INCLUDE=... and LIB=.. etc. If not, check the bin directory where you installed the compiler for a file named something similar to mscvars.bat, and then run it.
  • run makefile.pl
  • then nmake
  • then nmake test

    That will al look something like this:

    c:\Perl\packages>wget -c http://cpan.m.flirble.org/authors/id/H/HI/HIM +AZU/Win32/Win32-Clipboard-0.52.tar.gz --22:24:10-- http://cpan.m.flirble.org/authors/id/H/HI/HIMAZU/Win32/W +in32-Clipboard-0.52.tar.gz => `Win32-Clipboard-0.52.tar.gz' Resolving cpan.m.flirble.org... done. Connecting to cpan.m.flirble.org[212.134.1.32]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 17,739 [application/x-tar] 100%[====================================>] 17,739 3.52K/s +ETA 00:00 22:24:15 (3.52 KB/s) - `Win32-Clipboard-0.52.tar.gz' saved [17739/1773 +9] c:\Perl\packages>gunzip Win32-Clipboard-0.52.tar.gz gunzip: Win32-Clipboard-0.52.tar already exists; do you wish to overwr +ite (y or n)? y c:\Perl\packages>tar -xvf Win32-Clipboard-0.52.tar Win32-Clipboard-0.52/ Win32-Clipboard-0.52/ChangeLog Win32-Clipboard-0.52/Clipboard.html Win32-Clipboard-0.52/Clipboard.pm Win32-Clipboard-0.52/Clipboard.xs Win32-Clipboard-0.52/Makefile Win32-Clipboard-0.52/Makefile.PL Win32-Clipboard-0.52/MANIFEST Win32-Clipboard-0.52/META.yml Win32-Clipboard-0.52/README Win32-Clipboard-0.52/README.txt Win32-Clipboard-0.52/samples/ Win32-Clipboard-0.52/samples/bitmap.pl Win32-Clipboard-0.52/samples/monitor.pl Win32-Clipboard-0.52/samples/test-tie.pl Win32-Clipboard-0.52/samples/test.pl Win32-Clipboard-0.52/t/ Win32-Clipboard-0.52/t/test.t c:\Perl\packages>cd Win32-Clipboard-0.52 c:\Perl\packages\Win32-Clipboard-0.52>makefile.pl Name "main::BORLAND" used only once: possible typo at c:\Perl\packages +\Win32-Clipboard-0.52\Makefile.PL line 9. Writing Makefile for Win32::Clipboard c:\Perl\packages\Win32-Clipboard-0.52>nmake Microsoft (R) Program Maintenance Utility Version 8.00.40607.16 Copyright (C) Microsoft Corporation. All rights reserved. cp Clipboard.pm blib\lib\Win32\Clipboard.pm C:\Perl\bin\perl.exe -Ic:\Perl\lib -Ic:\Perl\lib C:\Perl\lib\E +xtUtils/xsubpp -typemap C:\Perl\lib\ExtUtils\typ cl -c -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSO +LE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED - cl : Command line warning D4029 : optimization is not available in the + standard edition compiler Clipboard.cpp Clipboard.xs(470) : warning C4018: '<' : signed/unsigned mismatch Clipboard.xs(539) : warning C4018: '<' : signed/unsigned mismatch Running Mkbootstrap for Win32::Clipboard () C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Clipboar +d.bs C:\Perl\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('N +AME'=>\"Win32::Clipboard\", 'DLBASE' => 'Clipboar link -out:blib\arch\auto\Win32\Clipboard\Clipboard.dll -dll -n +ologo -nodefaultlib -debug -opt:ref,icf -libpath Creating library blib\arch\auto\Win32\Clipboard\Clipboard.lib and o +bject blib\arch\auto\Win32\Clipboard\Clipboard.ex C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 blib\arc +h\auto\Win32\Clipboard\Clipboard.dll C:\Perl\bin\perl.exe -MExtUtils::Command -e cp Clipboard.bs bl +ib\arch\auto\Win32\Clipboard\Clipboard.bs C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 blib\arc +h\auto\Win32\Clipboard\Clipboard.bs c:\Perl\packages\Win32-Clipboard-0.52>nmake test Microsoft (R) Program Maintenance Utility Version 8.00.40607.16 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harn +ess(0, 'blib\lib', 'blib\arch')" t\test.t t\test....ok All tests successful. Files=1, Tests=9, 0 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 C +PU) c:\Perl\packages\Win32-Clipboard-0.52>

    When you get to the point where you see "All tests successful.", come back and I'll tell you how to apply the patch.

    And please, do go back and read those guidelines again, carefully. Believe me, everything you need to know is there, has been vetted, often through use, by many of the monks here, and is much more clearly explained, with less likelyhood of errors, than I can do it.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
  • Replies are listed 'Best First'.
    Re^10: Move/Copy files using Clipboard!
    by Ace128 (Hermit) on Oct 14, 2005 at 21:47 UTC
      Crap. Same problem as http://www.dbforums.com/showthread.php?mode=hybrid&t=1031906 ... :(
      Creating library blib\arch\auto\Win32\Clipboard\Clipboard.lib and o +bject blib \arch\auto\Win32\Clipboard\Clipboard.exp + LINK : fatal error LNK2023: bad dll or entry point 'msobj71.dll' + NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x7e7' Stop.
      Because Im using M$ Visual Studio 2003 .Net... and I should be using VS6.. Hmm..

        That's a pain. I thought I read somewhere that they had fixed that in the makefiles somehow.

        You do remember me saying that you would be best to use the same compiler as was used to build your version of Perl (^^ back up there somewhere)?

        Other than building your own version of perl first, which is a whole other kettle of fish, unless you can get your hands on a copy of MSC++ v6, you're a bit stymied.

        I've never attempted this with NET studio. You might try posting a top level post asking if anyone knows how to build modules with NET studio for use with AS perl. Someone may have done it.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
        "Science is about questioning the status quo. Questioning authority".
        The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
          Alrighty! Check this out:
          C:\Clipboard\Win32-Clipboard-0.52>perl Makefile.PL + Writing Makefile for Win32::Clipboard + + C:\Clipboard\Win32-Clipboard-0.52>nmake + + Microsoft (R) Program Maintenance Utility Version 1.50 + Copyright (c) Microsoft Corp 1988-94. All rights reserved. + + cp Clipboard.pm blib\lib\Win32\Clipboard.pm + C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib C:\Perl\lib\E +xtUtils/xs ubpp -typemap C:\Perl\lib\ExtUtils\typemap Clipboard.xs >xstmp.c && C +:\Perl\bin \perl.exe -MExtUtils::Command -e mv xstmp.c Clipboard.cpp + cl -c -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSO +LE -DNO_ST RICT -DHAVE_DES_FCRYPT -DBUILT_BY_ACTIVESTATE -DNO_HASH_SEED -DUSE_SIT +ECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCR +T_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"0.52\" -DXS_VERSION=\"0.52\" "-I +C:\Perl\li b\CORE" Clipboard.cpp + Clipboard.cpp + Clipboard.xs(470) : warning C4018: '<' : signed/unsigned mismatch + Clipboard.xs(539) : warning C4018: '<' : signed/unsigned mismatch + Running Mkbootstrap for Win32::Clipboard () + C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Clipboar +d.bs C:\Perl\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('N +AME'=>\"Wi n32::Clipboard\", 'DLBASE' => 'Clipboard', 'DL_FUNCS' => { }, 'FUNCLI +ST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" + link -out:blib\arch\auto\Win32\Clipboard\Clipboard.dll -dll -n +ologo -nod efaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x +86 Clipboa rd.obj C:\Perl\lib\CORE\perl58.lib "C:\Program\Microsoft Visual Stud +io\VC98\li b\user32.lib" "C:\Program\Microsoft Visual Studio\VC98\lib\oldnames.li +b" "C:\Pro gram\Microsoft Visual Studio\VC98\lib\kernel32.lib" "C:\Program\Micros +oft Visual Studio\VC98\lib\user32.lib" "C:\Program\Microsoft Visual Studio\VC98\ +lib\gdi32. lib" "C:\Program\Microsoft Visual Studio\VC98\lib\winspool.lib" "C:\Pr +ogram\Micr osoft Visual Studio\VC98\lib\comdlg32.lib" "C:\Program\Microsoft Visua +l Studio\V C98\lib\advapi32.lib" "C:\Program\Microsoft Visual Studio\VC98\lib\she +ll32.lib" "C:\Program\Microsoft Visual Studio\VC98\lib\ole32.lib" "C:\Program\Mi +crosoft Vi sual Studio\VC98\lib\oleaut32.lib" "C:\Program\Microsoft Visual Studio +\VC98\lib\ netapi32.lib" "C:\Program\Microsoft Visual Studio\VC98\lib\uuid.lib" " +C:\Program \Microsoft Visual Studio\VC98\lib\ws2_32.lib" "C:\Program\Microsoft Vi +sual Studi o\VC98\lib\mpr.lib" "C:\Program\Microsoft Visual Studio\VC98\lib\winmm +.lib" "C:\ Program\Microsoft Visual Studio\VC98\lib\version.lib" "C:\Program\Micr +osoft Visu al Studio\VC98\lib\odbc32.lib" "C:\Program\Microsoft Visual Studio\VC9 +8\lib\odbc cp32.lib" "C:\Program\Microsoft Visual Studio\VC98\lib\msvcrt.lib" -de +f:Clipboar d.def + Creating library blib\arch\auto\Win32\Clipboard\Clipboard.lib and o +bject blib \arch\auto\Win32\Clipboard\Clipboard.exp + C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 blib\arc +h\auto\Win 32\Clipboard\Clipboard.dll + C:\Perl\bin\perl.exe -MExtUtils::Command -e cp Clipboard.bs bl +ib\arch\au to\Win32\Clipboard\Clipboard.bs + C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 blib\arc +h\auto\Win 32\Clipboard\Clipboard.bs + + C:\Clipboard\Win32-Clipboard-0.52>nmake test + + Microsoft (R) Program Maintenance Utility Version 1.50 + Copyright (c) Microsoft Corp 1988-94. All rights reserved. + + C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harn +ess(0, 'bl ib\lib', 'blib\arch')" t\test.t + t\test....ok + All tests successful. + Files=1, Tests=9, 0 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 C +PU)
          Now, this is what I find cool! :)