From: Thomas, T. B <tim...@lm...> - 2001-01-23 22:12:24
|
Erick - the function I was using was out of the Win32 module, not Win32::GUI, that explains the differences. to get the method I use to work you would need: use Win32, as well = as use: Win32::Gui. Tim =20 ------------------------------------------------------------------------= ---- --------------------- Tim Thomas Unix Systems Administrator Lockheed Martin EIS =B7 Denver Data Center 303-430-2281 mailto:tim...@lm... <mailto:tim...@lm...>=20 ------------------------------------------------------------------------= ---- --------------------- -----Original Message----- From: Erick J. Bourgeois [mailto:er...@e-...] Sent: Tuesday, January 23, 2001 2:50 PM To: per...@li... Subject: [perl-win32-gui-users] MessageBox Tim, I tried your way and I got a runtime error, "Undefined subroutine &Win32::MsgBox called at ...". However, if I call the method = MessageBox() on a window object, it's all good. Halfway through this email I realized = what you did wrong; shouldn't it be: =20 Win32::GUI::MessageBox( 0, "Do you want to do this?", "Title", MB_ICONINFORMATION | MB_YESNO, ); =20 well at least this works for me. One question, what does the zero do? = Make it modal? =20 erick never stop questioning www.jeb.ca <http://www.jeb.ca>=20 |