I am having kind of a strange problem.  I am using ActiveState Komodo 
3.5.1, ActivePerl 5.8.8 with Win32::GUI 1.0.3 along with the Perl Dev Kit 
6.0.

If I put the following line in my script:

use Win32::GUI;

I get the following error:

Subroutine main::MB_ICONEXCLAMATION redefined at C:/Perl/lib/Exporter.pm 
line 65.
 at I:\SiteBuild HTA files\SiteBuild HTA files\policymod2.pl line 12
Subroutine main::MB_ICONWARNING redefined at C:/Perl/lib/Exporter.pm line 
65.
 at I:\SiteBuild HTA files\SiteBuild HTA files\policymod2.pl line 12
Subroutine main::MB_ICONINFORMATION redefined at C:/Perl/lib/Exporter.pm 
line 65.
 at I:\SiteBuild HTA files\SiteBuild HTA files\policymod2.pl line 12
Subroutine main::MB_ICONASTERISK redefined at C:/Perl/lib/Exporter.pm line 
65.
 at I:\SiteBuild HTA files\SiteBuild HTA files\policymod2.pl line 12
Subroutine main::MB_ICONQUESTION redefined at C:/Perl/lib/Exporter.pm line 
65.
 at I:\SiteBuild HTA files\SiteBuild HTA files\policymod2.pl line 12
Subroutine main::MB_ICONSTOP redefined at C:/Perl/lib/Exporter.pm line 65.
 at I:\SiteBuild HTA files\SiteBuild HTA files\policymod2.pl line 12
Subroutine main::MB_ICONERROR redefined at C:/Perl/lib/Exporter.pm line 
65.
 at I:\SiteBuild HTA files\SiteBuild HTA files\policymod2.pl line 12
Subroutine main::MB_ICONHAND redefined at C:/Perl/lib/Exporter.pm line 65.
 at I:\SiteBuild HTA files\SiteBuild HTA files\policymod2.pl line 12

If I change my use line to show

use Win32::Gui;

then I don't see any of these errors.

But if I try and compile the script using the perl dev kit with the 
lowercase Gui, I get the following errors in the compiler:

PerlApp 6.0.2 build 203380
Copyright (C) 1998-2005 ActiveState Corp.  All rights reserved.
ActiveState is a division of Sophos Plc.
Commercial license for Name <[EMAIL PROTECTED]>
auto\Win32\Gui\Gui.dll:
        error: Case mismatch between module and file name
        refby: C:\Perl\site\lib\Win32\GUI.pm
        file: C:\Perl\site\lib\auto\Win32\GUI\GUI.dll
GUI.dll:
        error: Case mismatch between module and file name
        refby: C:\Perl\site\lib\Win32\GUI.pm
        file: C:\Perl\site\lib\auto\Win32\GUI\GUI.dll
Win32\Gui.pm:
        error: Case mismatch between module and file name
        refby: policymod2.pl line 12
        file: C:\Perl\site\lib\Win32\GUI.pm
Created 'policymod2.exe' [Test it]
Executable size: 324 KB

[DONE]

The executable fails to run.

If I change things back to GUI, the compiler runs and executable works, 
but it pops up a DOS window with the above mentioned errors.

I tried to use the Indigo Star compiler, but the executable it produces 
gives me an error as soon as I double click on it.

Is there any way to get rid of these errors?

--
Andy Pastuszak
Desktop Engineer II
Commerce Bank
[EMAIL PROTECTED]
(856)470-3270


____________________________
This message and any attachments may contain confidential or privileged 
information and are intended only for the use of the intended recipients of 
this message.  If you are not the intended recipient of this message, please 
notify the sender by return email, and delete this and all copies of this 
message and any attachments from your system.  Any unauthorized disclosure, 
use, distribution, or reproduction of this message or any attachments is 
prohibited and may be unlawful.
____________________________

Reply via email to