Re: [perl-win32-gui-users] "Can't locate loadable object for module Win32::GUI in @INC..."
Anton, The answer is it depends. If you have the source (lots of files, including GUI.xs) you need a C compiler and the installation is perl Makefile.pl make make install With some versions perl Makefile.pl POLLUTE=1 is required as the first line instead of 'perl Makefile.pl' NB, with Microsofts Visual C/C++ compiler 'nmake' instead of make If you have a ppm (a Win32-GUI.ppd file and a directory 'MSWin32...') ppm install Win32-GUI Hope that helps (and that my memory of the installation is correct). Kev. |-+> | | Anton Yasnitsky <[EMAIL PROTECTED]>| | | Sent by: | | | [EMAIL PROTECTED]| | | ceforge.net | | || | || | | 23/01/2003 21:28 | | || |-+> >--| | | | To: perl-win32-gui-users@lists.sourceforge.net | | cc: | | Subject: [perl-win32-gui-users] "Can't locate loadable object for module Win32::GUI in| |@INC..." | >--| Hi, everybody! That's basically my primitive beginner's question: what should I do since I downloaded Win32::GUI 0.0.665 from http://dada.perl.it/ (many thanks to Aldo Calpini!) and unzipped it? I realize that the whole unzipped contents should be put somewhere (it says "@INC contains C:/Perl/lib and C:Perl/site/lib "), but nothing came out of my exerimenting with moving files from one directory to another (whatever idiotic it may look). So, where to? Or, generally, what to do next? __ Post your free ad now! http://personals.yahoo.ca --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
Re: [perl-win32-gui-users] "Can't locate loadable object for module Win32::GUI in @INC..."
Many thanks for your answers! After all, I'm likely to be quite near the ultimate solution! Finally (to skip the details and peculiarities), the message I receive while trying to run the script is as follows: Win32::GUI object version 0.0.558 does not match $Win32::GUI::VERSION 0.0.665 at C:/Perl/lib/DynaLoader.pm line 249. Compilation failed in require at gui_1.pl line 5. BEGIN failed--compilation aborted at gui_1.pl line 5. That's it. I believe it's getting better ... (Just in case, I guess, I have found and downloaded everything that might possibly help, ie Win32-GUI-0.0.558-PPM-5.6.zip; Win32-GUI-0.0.665.tar.gz; Win32-GUI-0.0.665-PPM-5.6.zip). So, What should be done now, please? --- [EMAIL PROTECTED] wrote: > > Anton, > > The answer is it depends. > > If you have the source (lots of files, > including GUI.xs) you need a C > compiler and the installation is > > perl Makefile.pl > make > make install > > With some versions > > perl Makefile.pl POLLUTE=1 > > is required as the first line instead of 'perl > Makefile.pl' > > NB, with Microsofts Visual C/C++ compiler > 'nmake' instead of make > > If you have a ppm (a Win32-GUI.ppd file and a > directory 'MSWin32...') > > ppm install Win32-GUI > > Hope that helps (and that my memory of the > installation is correct). > > Kev. > __ Post your free ad now! http://personals.yahoo.ca
RE: [perl-win32-gui-users] Newbie Win32::GUI Question
Works like a charm, thank you very much. -Original Message- From: Rogers, John Sent: Thursday, January 23, 2003 10:26 PM To: '[EMAIL PROTECTED]'; 'perl-win32-gui-users@lists.sourceforge.net' Subject:RE: [perl-win32-gui-users] Newbie Win32::GUI Question In your click sub, Try, $Win->campaign->Text("recording.."); call them by name. JohnR > -Original Message- > From: Jeff Slutzky [mailto:[EMAIL PROTECTED] > Sent: Friday, January 24, 2003 1:24 PM > To: 'perl-win32-gui-users@lists.sourceforge.net' > Subject: [perl-win32-gui-users] Newbie Win32::GUI Question > > > I have created a window with 4 buttons, 2 labels, 2 text fields, and a > status bar. In the Button_1 click event I try to write to > the txt field > and get the following error: "Can't locate > auto/Win32/GUI/Textfield/text.al in @INC (@INC contains; C:/Perl/lib > C:/Perl/site/lib .) at C:\Perl\Perlscripts\Sound > Recorder\soundrecorder.pl > line 107" > > Can anyone tell me what and why I get this error? > > Ultimately, I want to be able to write to a Status bar for > each button > event. I have a beefier application that calls Win32::API > calls and want > to make sure that the calls are also made in the correct space. So, > obviously I'm a newbie and need some help. > > > use Win32::GUI; > > $Win = new Win32::GUI::DialogBox( > -left => 284, > -top=> 466, > -width => 334, > -height => 238, > -name => "Win", > -text => "sound recorder" > ); > > > > $Win->AddButton( >-text=> "Record", >-name=> "Button_1", >-left=> 15, >-top => 19, >-width => 46, >-height => 21, >-foreground=> 16711680, > ); > > $sb1 = $Win->AddStatusBar( >-text=> "inactive...", >-name=> "StatusBar_1", >-left=> 0, >-top => 193, >-width => 324, >-height => 17, > ); > > $Win->AddButton( >-text=> "Play", >-name=> "Button_2", >-left=> 84, >-top => 19, >-width => 35, >-height => 21, >-foreground=> 16711680, > ); > > $Win->AddButton( >-text=> "Stop", >-name=> "Button_3", >-left=> 143, >-top => 20, >-width => 36, >-height => 21, >-foreground=> 16711680, > ); > > $Win->AddButton( >-text=> "Save", >-name=> "Button_4", >-left=> 203, >-top => 20, >-width => 41, >-height => 21, >-foreground=> 16711680, > ); > > $Win->AddTextfield( >-text=> "", >-name=> "userid", >-left=> 126, >-top => 89, >-width => 95, >-height => 20, > ); > > $txt1 = $Win->AddTextfield( >-text=> "", >-name=> "campaign", >-left=> 126, >-top => 119, >-width => 95, >-height => 20, > ); > > $Win->AddLabel( >-text=> "userid", >-name=> "Label_1", >-left=> 86, >-top => 90, >-width => 28, >-height => 13, >-foreground=> 0, > ); > > $Win->AddLabel( >-text=> "campaign", >-name=> "Label_2", >-left=> 69, >-top => 120, >-width => 46, >-height => 13, >-foreground=> 0, > ); > > $Win->Show(); > Win32::GUI::Dialog(); > > > sub Button_1_Click { > print "test\n"; > $txt1->text("recording.."); > } > > sub Win_Terminate { >return -1; > } > > __ > __ > > > > Jeff Slutzky > > > > --- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > ___ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > ## Disclaimer If this e-mail has been sent to you in error, please notify Oce-Australia Limited immediately and delete this e-mail from your system. Any views expressed in this e-mail are those of the individual sender and may not necessarily reflect the views of Oce-Australia Limited. ##
Re: [perl-win32-gui-users] Newbie Win32::GUI Question
Your problem is the lowercase 't' ... You could do what John Rogers suggested or change your line in the Button_1_Click subroutiine to $txt1->Text("recording.."); Jonathan -- Jonathan Southwick [EMAIL PROTECTED] Technical & Network Services Allegheny College, Meadville, PA 16335 (814) 332-2755 At 1/23/2003 09:24 PM, Jeff Slutzky wrote: I have created a window with 4 buttons, 2 labels, 2 text fields, and a status bar. In the Button_1 click event I try to write to the txt field and get the following error: "Can't locate auto/Win32/GUI/Textfield/text.al in @INC (@INC contains; C:/Perl/lib C:/Perl/site/lib .) at C:\Perl\Perlscripts\Sound Recorder\soundrecorder.pl line 107" Can anyone tell me what and why I get this error? Ultimately, I want to be able to write to a Status bar for each button event. I have a beefier application that calls Win32::API calls and want to make sure that the calls are also made in the correct space. So, obviously I'm a newbie and need some help. use Win32::GUI; $Win = new Win32::GUI::DialogBox( -left => 284, -top=> 466, -width => 334, -height => 238, -name => "Win", -text => "sound recorder" ); $Win->AddButton( -text=> "Record", -name=> "Button_1", -left=> 15, -top => 19, -width => 46, -height => 21, -foreground=> 16711680, ); $sb1 = $Win->AddStatusBar( -text=> "inactive...", -name=> "StatusBar_1", -left=> 0, -top => 193, -width => 324, -height => 17, ); $Win->AddButton( -text=> "Play", -name=> "Button_2", -left=> 84, -top => 19, -width => 35, -height => 21, -foreground=> 16711680, ); $Win->AddButton( -text=> "Stop", -name=> "Button_3", -left=> 143, -top => 20, -width => 36, -height => 21, -foreground=> 16711680, ); $Win->AddButton( -text=> "Save", -name=> "Button_4", -left=> 203, -top => 20, -width => 41, -height => 21, -foreground=> 16711680, ); $Win->AddTextfield( -text=> "", -name=> "userid", -left=> 126, -top => 89, -width => 95, -height => 20, ); $txt1 = $Win->AddTextfield( -text=> "", -name=> "campaign", -left=> 126, -top => 119, -width => 95, -height => 20, ); $Win->AddLabel( -text=> "userid", -name=> "Label_1", -left=> 86, -top => 90, -width => 28, -height => 13, -foreground=> 0, ); $Win->AddLabel( -text=> "campaign", -name=> "Label_2", -left=> 69, -top => 120, -width => 46, -height => 13, -foreground=> 0, ); $Win->Show(); Win32::GUI::Dialog(); sub Button_1_Click { print "test\n"; $txt1->text("recording.."); } sub Win_Terminate { return -1; } Jeff Slutzky --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users