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
|