Re: [win32-gui] [perl-win32-gui-users] Progress Bar Not Displaying

2006-05-05 Thread Robert May
Andrew M Pastuszak wrote: Thanks for the help. I didn't want to post the whole script and clog the list. Next time I will post the entire script. Please don't. If its long its very likely that no one will read it. Post a *short*, but complete example demonstrating your problem. Often the

Re: [win32-gui] [perl-win32-gui-users] Progress Bar Not Displaying

2006-05-05 Thread Andrew M Pastuszak
Win32::GUI::DoEvents() did the trick! Thanks for everyone's help! Have a great weekend! -- Andy Pastuszak Desktop Engineer II Commerce Bank [EMAIL PROTECTED] (856)470-3270 Robert May <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 05/05/2006 04:12 PM To: Andrew M Pastuszak <[EM

Re: [win32-gui] [perl-win32-gui-users] Progress Bar Not Displaying

2006-05-05 Thread Andrew M Pastuszak
Thanks for the help. I didn't want to post the whole script and clog the list. Next time I will post the entire script. -- Andy Pastuszak Desktop Engineer II Commerce Bank [EMAIL PROTECTED] (856)470-3270 Robert May <[EMAIL PROTECTED]> 05/05/2006 04:12 PM To: Andrew M Pastusza

Re: [win32-gui] RE: [perl-win32-gui-users] Odd problem with compiling a script

2006-05-05 Thread Robert May
Glenn Linderman wrote: On approximately 5/5/2006 12:42 PM, came the following characters from the keyboard of Robert May: I can duplicate the problem and the solution. I don't understand why the presented solution solves the problem. As can I. I assumed (some years back when I discovered t

Re: [win32-gui] [perl-win32-gui-users] Progress Bar Not Displaying

2006-05-05 Thread Robert May
Andrew M Pastuszak wrote: I am having a problem, with the progress bar not displaying in a window. Here is my subroutine. Feel free to offer any comments you want about cleaning up this code: Without *short*, *complete*, and *runnable* code example that demonstrates your problem it is very d

[perl-win32-gui-users] Exporting constants [Was: Odd problem with compiling a script]

2006-05-05 Thread Robert May
Robert May wrote: > Both Win32 and Win32::GUI export a set of constants by default Andrew M Pastuszak wrote: How do I know which constants these two modules export? If they were well behaved modules, then it would be documented, but neither do. Either look in their .pm files for the @EXPORT

Re: [win32-gui] RE: [perl-win32-gui-users] Odd problem with compiling a script

2006-05-05 Thread Andrew M Pastuszak
How do I know which constants these two modules export? -- Andy Pastuszak Desktop Engineer II Commerce Bank [EMAIL PROTECTED] (856)470-3270 Robert May <[EMAIL PROTECTED]> 05/05/2006 03:42 PM To: Andrew M Pastuszak <[EMAIL PROTECTED]> cc: perl-win32-gui-users@lists.so

Re: [win32-gui] [perl-win32-gui-users] piping system commands

2006-05-05 Thread Robert May
Steve Loughran wrote: Is there a way to run a system command, either via a system() call, or a open(FH,"cmd |") (or any other way), and read in the output of that command, without a cmd.exe instance appearing on the screen? From what I understand if the command is marked as a 'console' app (t

Re: [win32-gui] RE: [perl-win32-gui-users] Odd problem with compiling a script

2006-05-05 Thread Robert May
Andrew M Pastuszak wrote: [edited] > My script used to read as follows: > > use strict; > use warnings; > use Win32; > use Win32::GUI; <- line 12 > I get the following error: > > Subroutine main::MB_ICONEXCLAMATION redefined at > C:/Perl/lib/Exporter.pm line 65. at I:\SiteBuild HTA > files\Si

[perl-win32-gui-users] Progress Bar Not Displaying

2006-05-05 Thread Andrew M Pastuszak
I am having a problem, with the progress bar not displaying in a window. Here is my subroutine. Feel free to offer any comments you want about cleaning up this code: sub Modify_Policy { open (FILE,'>policies.log'); our $loop = @modarray; our $w5 = 450; our $h5 = 125; our $it

RE: [perl-win32-gui-users] Odd problem with compiling a script

2006-05-05 Thread Andrew M Pastuszak
Ok, I seem to have gotten around the error. I changed my use declarations so that Win32::GUI is on top and that seems to have fixed the problem. My script used to read as follows: use strict; use warnings; use Win32; use Win32::GUI; I simply changed it to: use Win32::GUI; use strict; use warn

RE: [perl-win32-gui-users] Odd problem with compiling a script

2006-05-05 Thread Andrew M Pastuszak
Everything refers back to line 12 of my script, which is this line: use Win32::GUI; The GUI piece needs to stay in upper case in order for the app to compile properly using the Perl Dev Kit. I am still quite the perl novice. -- Andy Pastuszak Desktop Engineer II Commerce Bank [EMAIL PROTECTED]

RE: [perl-win32-gui-users] Odd problem with compiling a script

2006-05-05 Thread Plum, Jason
Andrew, It looks to me (though without samples from the script you are using) that you may be redifining the constants within your script. This would cause such an error where Exporter was involved. Changing any XS module name's exact method of spelling will cause such errors btw, and should gene

[perl-win32-gui-users] Odd problem with compiling a script

2006-05-05 Thread Andrew M Pastuszak
I am having kind of a strange problem. I am using ActiveState Komodo 3.5.1, ActivePerl 5.8.8 with Win32::GUI 1.0.3 along with the Perl Dev Kit 6.0. If I put the following line in my script: use Win32::GUI; I get the following error: Subroutine main::MB_ICONEXCLAMATION redefined at C:/Perl/li

[perl-win32-gui-users] piping system commands

2006-05-05 Thread Steve Loughran
Hi all Yes, its me again... sorry :) Part of my application needs to run a command, and take the output of that command to work on. This bit works fine, BUT it momentarily opens a cmd.exe instance. Not only does this look a bit scrappy, it also causes the window focus to be swapped to the cmd