Re: What is not initialised here?

2007-05-29 Thread John
[EMAIL PROTECTED] wrote: > $_ = shift @data until /Amount/; # start of transactions > >> and get this warning: > > Use of uninitialized value in pattern match (m//) at CMS2AP.pl line 138. > > One way to avoid the warning is to check for that first uninit'ed $_ Thank you Andy I had been thi

Re: Using Win32::OLE to Query Exchange Remotely

2007-05-29 Thread Foo JH
Thanks for sharing your work on Exhange (Win32::Exchange) with the community Steven. ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: Using Win32::OLE to Query Exchange Remotely

2007-05-29 Thread Steven Manross
The following code has the benefit of using NT credentials of the currently logged in user. But, the currently logged in user needs to have access in Exchange. :) No passwords in clear text to glean from your scripts That's usually a good thing. :) $OLECon = Win32::OLE->GetObject("winmgm

Re: Using Win32::OLE to Query Exchange Remotely

2007-05-29 Thread perlgeek
Figured it out: $host = "192.168.42.3"; $user = "vdom\\Administrator"; $pass = "password"; $WMI = Win32::OLE->new('WbemScripting.SWbemLocator') || die "Cannot access WMI on local machine: ", Win32::OLE->LastError; $OLECon = $WMI->ConnectServer($host, "root\\MicrosoftExchangeV2", $user, $

Using Win32::OLE to Query Exchange Remotely

2007-05-29 Thread perlgeek
I use this to query Exchange Mailbox and Public Folder sizes locally on the server: use Win32::OLE qw(in); # Get item counts and sizes for each mailbox on the target server # my $OLECon= Win32::OLE->GetObject('winmgmts:localhost\\root\\MicrosoftExchangeV2') or die "WMI Connection Failed\n";

Re: Win32-API aborting mid-application

2007-05-29 Thread Bill Luebkert
Adam R. Frielink wrote: > I have hit a road block using the Win32-API module. I've gotten a > working tool which allows me to modify the contents of the Crystal > Reports RPT file in memory using the API interface. Unfortunately, > everytime I attempt to access a particular method, my application

Re: What is not initialised here?

2007-05-29 Thread Andy_Bach
$_ = shift @data until /Amount/; # start of transactions > and get this warning: Use of uninitialized value in pattern match (m//) at CMS2AP.pl line 138. One way to avoid the warning is to check for that first uninit'ed $_ #!perl -w use strict; my @data = qw(hi ho hee ha Amount hoo hooh);

Win32-API aborting mid-application

2007-05-29 Thread Adam R. Frielink
I have hit a road block using the Win32-API module. I've gotten a working tool which allows me to modify the contents of the Crystal Reports RPT file in memory using the API interface. Unfortunately, everytime I attempt to access a particular method, my application fails with a very non-specific