Re: Win32::API::Struct problem

2005-12-15 Thread $Bill Luebkert
Rod Butcher wrote: That looks like what I get now from Process32First/Next. According to the PROCESSENTRY32 structure, the 3rd value should be a ProcessID, and the 7th should be ParentProcessID : in your example, 0 and 0, which doesn't look good. Examples of values I got :- 296 0 0 28 0

Re: Win32::API::Struct problem

2005-12-15 Thread $Bill Luebkert
I left off an * on the pack: my $PE32 = pack 'LZ*', 296, 0, 0, 0, 0, 0, 0, 0, 0, ' ' x 259 . \0; print Data::Dumper-Dump([$PE32], [qw($PE32)]) if $debug; Also, you're requesting thread and dumping process. You should request ALL or dump thread instead of process. use strict; use

Re: Re:Working example of code that runs as EXCEL macro/module

2005-12-15 Thread Huub Peters
I want to run perl code as a function/module inside EXCEL, in the same way that one can run VBA. Despite of other reports that say it can't be done I think it can. There is a tool called PerlCtrl which is part of the ActiveState Perl Development Kit that can do just that. At least it provides

Re: Win32::API::Struct problem

2005-12-15 Thread Sisyphus
- Original Message - From: Rod Butcher Also, perl itself always crashes after exactly 13 calls to Process32Next (probably on the 14th call). Plenty of RAM available, it has not returned code 18 to indicate no more processes (anyway, there are +- 50 running). Be aware that it's not

Net::SSH::W32Perl

2005-12-15 Thread Adrian Neville
Hi, Has anyone got Net::SSH::W32Perl to work on Windows XP, I have ActiveState Perl 5.8 installed, and have downloaded the Net::SSH::W32Perl ppm's from soulcage. The following example hangs if the command sent to the remote server returns any data, if the output on the ls is redirected it

Re: Win32::API::Struct problem

2005-12-15 Thread Rod Butcher
Many thanks Bill, I had got into my head the idea that I had to walk thru the proceeses to get to the threads i.e. a hierarchy of threads within processes - whereas as you point out I go straight to the threads via TH32CS_SNAPTHREAD (a flat structure). The code I ended up with follows. Many

Re: Win32::API::Struct problem

2005-12-15 Thread $Bill Luebkert
Sisyphus wrote: $PE32 = pack 'LZ', 296, 0, 0, 0, 0, 0, 0, 0, 0, ' ' x 259 . \0; There's a * missing after the Z. ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe:

SHA1 password digests

2005-12-15 Thread Richard Gregory
Hi, I'm trying to develop a perl client for a java (apache axis wss4j) web service (i'm a newbie to perl and only using it to try to test interoperability with my axis service). The client request needs authenticating with a UsernameToken

Formatting a Date in a Cell in Excel

2005-12-15 Thread Glen Plantz
Title: Message Hi Folks, I'm having trouble formatting the Cell Contents of an Excel sheet with Win32::OLE. I want to force the contents of a Cell that has a DATE value ( "Dec 2005" ) to be a string. What happens is the Date value 'DEC 2005' in converted into 'Dec-05'. Any help will be

RE: Formatting a Date in a Cell in Excel

2005-12-15 Thread Jan Dubois
Try something like this: $Sheet1-Range(D2)-{NumberFormat} = MMM ; and please use plain text instead of HTML for mailing list traffic. :) Cheers, -Jan ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe:

RE: perldoc

2005-12-15 Thread Suresh Govindachar
$Bill Luebkert Sent on December 15, 2005 8:29 PM -0800 Suresh Govindachar wrote: Wanting to capture the output of perldoc with a perl variable, I looked at perldoc.bat. What perldoc.bat does is run the following script with the arguments given to perldoc: snip

Re: perldoc

2005-12-15 Thread $Bill Luebkert
Suresh Govindachar wrote: 1) What does the following line do? eval 'exec C:\opt\perl\bin\perl.exe -S $0 ${1+$@}' if 0; That's just running perl against the bat file. But doesn't the if 0 condition mean that nothing happens? (The call to perl to