From: Johan Lindstrom <johanl@ba...> - 2001-07-11 14:17:18
> > 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">
my $winMain = new Win32::GUI::Window(
"-left" => 13,
"-top" => 32,
"-width" => 439,
"-height" => 260,
"-name" => "winMain",
"-text" => "Autoscroller"
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:
so if that wasn't a typo... What version of Perl and Win32::GUI do you have
Have you been able to run regular Win32::GUI Perl programs, i.e.
at all? Start there and wait with the PerlScript stuff until you are sure
the basics work.
Hope That Helps,
------ ---- --- -- -- -- - - - - -
Johan Lindström Boss Casinos
If the only tool you have is a hammer,
everything tends to look
like a nail