Many thanks, John.
It turned out that the environment just got weird. I rebooted my machine and everything started working. I hate problems like that when you're trying learning something new and unfamiliar. Cheers, Carter. > -----Original Message----- > From: Huber. John (PWA) [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 1:08 PM > To: Carter Thompson; Perl-Win32-Users (E-mail) > Subject: RE: Win32 Dialog > > > I just added the name parameter to your code and it worked > ok. The sleep > at the end is just so you can see the window. > > use Win32::GUI; > > my $winobj = Win32::GUI::Window->new( > -name => "Window", > -minwidth => 10, > -minheight => 10, > -maxwidth => 100, > -maxheight => 100); > $winobj->Show(); > sleep 10; > > john > > -----Original Message----- > From: Carter Thompson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 12:02 PM > To: Perl-Win32-Users (E-mail) > Subject: Win32 Dialog > > > > > I have a need to generate a small Win32 dialog to display some > information graphically. I have experience writing Perl/Tk > gui's so I thought this would be pretty straight forward, > unfortunately this is not the case. Given the example below > shouldn't this snippet display an empty dialog? > > =-=-=-= > use Win32::GUI; > > my $winobj = Win32::GUI::Window->new( -minwidth => 10, > -minheight => > 10, > -maxwidth => > 100, > -maxheight => > 100); > $winobj->Show(); > =-=-=-= > > I get the following error when I attempt to run it: > > Scalar found where operator expected at Win32/GUI.pm line 1588, near > "$max $::sspb_lno" > (Missing operator before $::sspb_lno?) > Scalar found where operator expected at Win32/GUI.pm line > 1667, near "$y > $::sspb_lno" > (Missing operator before $::sspb_lno?) > Scalar found where operator expected at Win32/GUI.pm line 1588, near > "$max $::sspb_lno" > (Missing operator before $::sspb_lno?) > Scalar found where operator expected at Win32/GUI.pm line > 1667, near "$y > $::sspb_lno" > (Missing operator before $::sspb_lno?) > syntax error at Win32/GUI.pm line 1588, near "$max $::sspb_lno" > syntax error at Win32/GUI.pm line 1667, near "$y $::sspb_lno" > Compilation failed in require at script line 6. > BEGIN failed--compilation aborted at script line 6. > > Obviously, my "use" of Win32::GUI isn't correct, so if I > change the code > to > the following: > > =-=-=-= > use Win32::GUI::Window; > > my $winobj = Win32::GUI::Window->new( -minwidth => 10, > -minheight => > 10, > -maxwidth => > 100, > -maxheight => > 100); > $winobj->Show(); > =-=-=-= > > I get this error: > > Can't locate Win32/GUI/Window.pm in @INC (@INC contains: C:/Perl/lib > C:/Perl/site/lib .) at script line 6. > BEGIN failed--compilation aborted at script line 6. > > > What am I doing wrong and/or missing? > > Thanks! > > Carter. > > _______________________________________________ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs