ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pdk
pdk
RE: Win32::MsgBox not showing
by Jan Dubois other posts by this author
May 4 2009 3:57PM messages near this date
Re: Improving the perlapp --tmpdir mechanism | Converting a PerlTray complied script to PerlApp compiled script?
On Wed, 22 Apr 2009, Jan Dubois wrote:
>  On Wed, 25 Mar 2009, Todd Beverly wrote:
>  > Allan Clarke wrote:
>  > > I am using Perl 5.8.8 and PerlApp 6.0.2 to create an executable on
>  > > Windows. In my script, I make a call to Win32::MsgBox(). This
>  > > works fine as script, but when I make an executable, there is no
>  > > dialog or modality. (My script does start with a "use Win32;")
>  > >
>  > This was answered about a month ago (at least for PerlApp v7.3.0).
>  > Search the archives if you want the entire thread.
>  >
>  > Here is Jan Dubois' response:
>  >
>  > You may be hitting this bug:
>  >
>  > http://bugs.activestate.com/show_bug.cgi?id=69277
>  >
>  > As the bug notes, a workaround seems to be to include the Tk module
>  > in your application.
>  >
>  > A less heavy-handed workaround would be to use the --nomanifest
>  > option, but that is only supported in PDK 8.0.
> 
>  I think I've found the "correct" way to prevent this problem, but I
>  can no longer reproduce it on my fully patched up Windows XP systems.

Alan has confirmed that my fix works for him.  It will be in the next PDK
release, but in the meantime you can add the following lines to your
program if you are still using PDK 7.x:

    use Win32;
    BEGIN { Win32::LoadLibrary("comctl32.dll") }

Cheers,
-Jan

_______________________________________________
PDK mailing list
PDK@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved