For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > September 2004 > Re: what module is the windows message box in?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: what module is the windows message box in?
Sisyphus

2004-09-28, 3:57 am

corn29@ no_spam excite.com wrote:
> Hello,
>
> I have a barebones release of Perl 5.8. I need to use Win32::MsgBox
> in the body of the script. From CPAN I downloaded libwin32-0.191.zip
> and installed it. The problem is installing that module loads all the
> Win libraries. I only need to use the MsgBox and nothing else.
>
> By themselves, I tried getting just Win32::OLE and that doesn't appear
> to have MsgBox in it and I couldn't get Win23::GUI to build at all!
>
> Is there a more abbreviated module I can get or is the entire
> collection of Windows libraries as "low" as I can go?
>


You just need to install the Win32 module which is one of the modules
that makes up libwin .... umm .... that may not be quite correct -
Win32 *used* to be part of libwin, but it is now (with perl 5.8.5) part
of perl core. If you have perl5.8.5 you'll already have it - otherwiae
you'll need to install it, and the simplest way of doing that is to
install libwin.

use warnings;
use Win32;

Win32::MsgBox("Hello World");

__END__

See 'perldoc Win32' for more information regarding that function.

Cheers,
Rob

--
To reply by email u have to take out the u in kalinaubears.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com