Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Win32 development

by davidrw (Prior)
on Dec 04, 2005 at 14:53 UTC ( [id://513956]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Win32 development
in thread Win32 development

PAR is the easy part .. get v.90 by running ppm3 from a DOS prompt, and then doing:
install http://www.bribes.org/perl/ppm/PAR.ppd
That gives you a script pp to run...
pp -o foo.exe --gui foo.pl
And that's (probably) it -- you have a foo.exe you can drop anywhere (and no pre-existing perl.exe or modules required on the target machine)..

As for Tk, This thread was just posted Tk how-to? and has some good stuff.. but i'd definitely go the route of finding some examples -- esskar's line to Tk-mines sounds promising..

I haven't actually used Win32::Shortcut, but i've seen PM postings about it in the past 6 months..

Replies are listed 'Best First'.
Re^4: Win32 development
by water (Deacon) on Dec 05, 2005 at 02:33 UTC
    call me a cynic, but par is never that easy. i find i have to say a prayer first, throw salt over my shoulder, and avoid full moons when using it ... and then, if i am lucky, par works 3 out of 4 times. i find old par .exes which used to run stop doing so. par programs which used to compile on one xp box don't on another. i know i sound like complainer, which isn't my intent. par is great, the concept is great, the fact the bundling works is an amazing technical feat, the fact the bundle is a zip file which can be dissected is damn cool too. i like par. i try to use par. most of time i can use it successfully. but par is, by its nature, much less reliable than typical of most perl technologies (which almost never hiccup). not a complaint, not a rant, just my opinion.

      I have found that par is highly sensitive to the surrounding perl install. I use it on my machine all the time, and the executeables work flawlessly on any machine they're deployed on. However, I have a coworker and executeables created by par on his machine are a downright nightmare. Only maybe 1 in 5 works on any other machine at all, and often the generated executeables require perl56.dll. This is especially odd since the executeables produced on my machine tend to be significantly smaller (10% or so) than the ones produced on his, for the same script.

      Now, in theory we're both using the same version of ActiveState's perl, and the same version of PAR. However, his is installed in some personal subdirectory (something like C:\Stuff\Perl), and I think there might be some weird permissions issues with it too. Mine was installed, from a clean system, straight into C:\Perl.

      --
      @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/
        indeed, my perl on the winbox in question is c:\perl, which i think is nonstandard. good to know -- par is so worthwhile i'll happily deinstall perl and reinstall in default location.... thanks for the tip!
      You're not a cynic, you're superstitious. Programmers should be analytical.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://513956]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found