From: Jerome M. <jer...@al...> - 2002-11-22 07:34:01
|
Hi, I'have installed Win32-GUI 0.0.665 under mi Win2000 with ActivePerl 5.6.1. And got the following messages. What is the problem ? c:\>perl use Win32; use Win32::GUI; Prototype mismatch: sub main::MB_ICONEXCLAMATION () vs none at C:/ActivePerl/lib/Exporter.pm line 57. Exporter::import('BS_3STATE', 'BS_AUTO3STATE', 'BS_AUTOCHECKBOX', 'BS_AUTORADIOBUTTON', 'BS_CHECKBOX', 'BS_DEFPUSHBUTTON', 'BS_GROUPBOX', 'BS_LEFTTEXT', ...) called at - line 2 main::BEGIN() called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 eval {...} called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 Prototype mismatch: sub main::MB_ICONWARNING () vs none at C:/ActivePerl/lib/Exporter.pm line 57. Exporter::import('BS_3STATE', 'BS_AUTO3STATE', 'BS_AUTOCHECKBOX', 'BS_AUTORADIOBUTTON', 'BS_CHECKBOX', 'BS_DEFPUSHBUTTON', 'BS_GROUPBOX', 'BS_LEFTTEXT', ...) called at - line 2 main::BEGIN() called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 eval {...} called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 Prototype mismatch: sub main::MB_ICONINFORMATION () vs none at C:/ActivePerl/lib/Exporter.pm line 57. Exporter::import('BS_3STATE', 'BS_AUTO3STATE', 'BS_AUTOCHECKBOX', 'BS_AUTORADIOBUTTON', 'BS_CHECKBOX', 'BS_DEFPUSHBUTTON', 'BS_GROUPBOX', 'BS_LEFTTEXT', ...) called at - line 2 main::BEGIN() called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 eval {...} called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 Prototype mismatch: sub main::MB_ICONASTERISK () vs none at C:/ActivePerl/lib/Exporter.pm line 57. Exporter::import('BS_3STATE', 'BS_AUTO3STATE', 'BS_AUTOCHECKBOX', 'BS_AUTORADIOBUTTON', 'BS_CHECKBOX', 'BS_DEFPUSHBUTTON', 'BS_GROUPBOX', 'BS_LEFTTEXT', ...) called at - line 2 main::BEGIN() called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 eval {...} called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 Prototype mismatch: sub main::MB_ICONQUESTION () vs none at C:/ActivePerl/lib/Exporter.pm line 57. Exporter::import('BS_3STATE', 'BS_AUTO3STATE', 'BS_AUTOCHECKBOX', 'BS_AUTORADIOBUTTON', 'BS_CHECKBOX', 'BS_DEFPUSHBUTTON', 'BS_GROUPBOX', 'BS_LEFTTEXT', ...) called at - line 2 main::BEGIN() called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 eval {...} called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 Prototype mismatch: sub main::MB_ICONSTOP () vs none at C:/ActivePerl/lib/Exporter.pm line 57. Exporter::import('BS_3STATE', 'BS_AUTO3STATE', 'BS_AUTOCHECKBOX', 'BS_AUTORADIOBUTTON', 'BS_CHECKBOX', 'BS_DEFPUSHBUTTON', 'BS_GROUPBOX', 'BS_LEFTTEXT', ...) called at - line 2 main::BEGIN() called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 eval {...} called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 Prototype mismatch: sub main::MB_ICONERROR () vs none at C:/ActivePerl/lib/Exporter.pm line 57. Exporter::import('BS_3STATE', 'BS_AUTO3STATE', 'BS_AUTOCHECKBOX', 'BS_AUTORADIOBUTTON', 'BS_CHECKBOX', 'BS_DEFPUSHBUTTON', 'BS_GROUPBOX', 'BS_LEFTTEXT', ...) called at - line 2 main::BEGIN() called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 eval {...} called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 Prototype mismatch: sub main::MB_ICONHAND () vs none at C:/ActivePerl/lib/Exporter.pm line 57. Exporter::import('BS_3STATE', 'BS_AUTO3STATE', 'BS_AUTOCHECKBOX', 'BS_AUTORADIOBUTTON', 'BS_CHECKBOX', 'BS_DEFPUSHBUTTON', 'BS_GROUPBOX', 'BS_LEFTTEXT', ...) called at - line 2 main::BEGIN() called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 eval {...} called at C:/ActivePerl/site/lib/Win32/GUI.pm line 2 |
From: Johan L. <jo...@ba...> - 2002-11-22 12:10:19
|
At 08:33 2002-11-22 +0100, Jerome Martin wrote: >I'have installed Win32-GUI 0.0.665 under mi Win2000 with ActivePerl 5.6.1. >And got the following messages. What is the problem ? > > >c:\>perl >use Win32; >use Win32::GUI; >Prototype mismatch: sub main::MB_ICONEXCLAMATION () vs none at >C:/ActivePerl/lib/Exporter.pm line 57. It's a clash between Win32 and Win32::GUI that appeared in Perl 5.6.1 I think. Either Perl broke something, or the Win32 changed. I suspect the latter. use Win32 (); will solve the problem. The effect of the () is that no symbols are imported from the Win32 module. If you still need some of them, specify them as use Win32 qw( MY_SYMBOL ); /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos jo...@ba... Latest bookmark: "O'Reilly Network Patterns, Hype, and Snobbery..." http://www.oreillynet.com/pub/wlg/2341 dmoz: ...mming/Methodologies/Patterns_and_Anti-Patterns/ 164 |
From: <pko...@me...> - 2003-01-08 10:10:27
|
Hello list, first of all I wish a good new year to all! And now some questions :-) 1) I tried to port my app to the new event model, but not all events were thrown (e. g. I think click on StatusBar was not fired). So I gave up. 2) I read that mixing the old and new event model would be possible (when all controls belonging to one window use the same event model). Is this correct or are there problems? 3) I found strange behaviours in Win32::GUI: For example: "use diagnostics -verbose;" makes non working scripts to work? This resolved problems like "undefined subroutine &main:: called at ..." the line where "Win32::GUI::Dialog();". Is this a bug or a feature? And the answer for which I would really like to have an answer :-) Aldo wrote on 2002-10-17: "I will try to backlog the mailing list and reply to unanswered questions, a new version is in development and will be out soon." What is "soon"? Is there any development? Sincerely Peter (I use Win32::GUI 0.0.665 with Win98, Activestate Perl 5.6.1 build 633.) |