From: Johan L. <jo...@ba...> - 2001-07-11 14:17:18
|
Mark wrote: > > As a newbie to both Perl and Win32:GUI I am a little confused with an > > error message I am receiving after running the simple Perl script below. I guess you are using the Windows Script Host and a .wsf file to run this (or something similar). I just had to try this thing, and got the following to work (install the Windows Script Host and put this in test.wsf): <Job Id="First Win32::GUI attempt"> <script language=PerlScript> use Win32::GUI; my $winMain = new Win32::GUI::Window( "-left" => 13, "-top" => 32, "-width" => 439, "-height" => 260, "-name" => "winMain", "-text" => "Autoscroller" ); $winMain->Show(); Win32::GUI::Dialog(); </script> </job> Your example contains broken Win32::GUI code (no -name option etc), and the Scripting Host engine didn't grok that -optionnamn is valid Perl. And the program crashed when I didn't have the Dialog() call present for some reason... * shrug * Anyway... see if you can get my code to run when you get the system to understand that you have Win32::GUI installed. > > I have ActivePerl installed in C:/Perl and Win32::GUI installed in > > C:/Perl/site/lib/Win32GUI Should really be: C:/Perl/site/lib/Win32/GUI so if that wasn't a typo... What version of Perl and Win32::GUI do you have installed? Have you been able to run regular Win32::GUI Perl programs, i.e. perl myguiprogram.pl at all? Start there and wait with the PerlScript stuff until you are sure the basics work. Hope That Helps, /J ------ ---- --- -- -- -- - - - - - Johan Lindström Boss Casinos Sourcerer jo...@ba... http://www.bahnhof.se/~johanl/ If the only tool you have is a hammer, everything tends to look like a nail |