WIN32::OLE WMI Out params

2009-12-03 Thread Michael
Hi, I'm a novice regarding Perl, and need some help converting a VBScript to a PerlScript. The following VBScript returns some data from HP OpenView. The GetChildNodeGroups method returns the number of ChildGroups, and the [out] parameter NodeGroups returns an array which contains a list of

RE: WIN32::OLE WMI Out params

2009-12-03 Thread Brian Raven
Michael wrote: Hi, I'm a novice regarding Perl, and need some help converting a VBScript to a PerlScript. The following VBScript returns some data from HP OpenView. The GetChildNodeGroups method returns the number of ChildGroups, and the [out] parameter NodeGroups returns an array

RE: WIN32::OLE WMI Out params

2009-12-03 Thread Michael
Michael wrote: Hi, I'm a novice regarding Perl, and need some help converting a VBScript to a PerlScript. The following VBScript returns some data from HP OpenView. The GetChildNodeGroups method returns the number of ChildGroups, and the [out] parameter NodeGroups returns

RE: WIN32::OLE WMI Out params

2009-12-03 Thread Steven Manross
When troubleshooting OLE issues, it is best to have the following code after each OLE command... If (Win32::OLE-LastError() != 0) { print error calling blah: . Win32::OLE-LastError() . \n; exit 0; } ...Or something similar, so you can see what OLE had issues with (if anything). It might

RE: WIN32::OLE WMI Out params

2009-12-03 Thread Michael
When troubleshooting OLE issues, it is best to have the following code after each OLE command... If (Win32::OLE- LastError() != 0) { print error calling blah: . Win32::OLE- LastError() . \n; exit 0; } ...Or something similar, so you can see what OLE had issues with (if anything).

Embedding Win32 App in TK

2009-12-03 Thread Edwards, Mark (CXO)
Is it possible to embed a Windows application (GUI or console) in a Perl/TK window? Something like opening a cmd console in a TK script that will accept input and display output. ___ Perl-Win32-Users mailing list

Can I 'yield' to the system?

2009-12-03 Thread Barry Brevik
Re: Active Perl 5.8.8 running on Windows. Back when I was doing some Assembly language programming, there was a system call to yield to the Windows operating system, in other words, give up the rest of your time slice. Is there a way to do this with Perl? I'm writing an app that continuously

Re: Can I 'yield' to the system?

2009-12-03 Thread Michael Ellery
Barry Brevik wrote: Re: Active Perl 5.8.8 running on Windows. Back when I was doing some Assembly language programming, there was a system call to yield to the Windows operating system, in other words, give up the rest of your time slice. Is there a way to do this with Perl? I'm writing