On approximately 3/4/2004 12:40 PM, came the following characters from
the keyboard of david fox:
Unfortunately, within our application, my perl script is executed by a
"ShellExecute" call in a Visual Basic Module that is executing within
the VBA interpreter inside Excel (Please don't ask why :-) and I find
that when things are executed this way, although all the Win32::GUI
calls succeed, nothing gets displayed on the screen. I imagine that this
may have something to do with the fact that the NShowCmd argument to
ShellExecute is set to SW_HIDE to keep the perl executable from
displaying its console window. I assumed that explicitly calling the
Show() method of the Windows I create using Win32::GUI would cause them
to be displayed even though the console window is not, but I'm beginning
to think that there's an inheritance relationship here that is keeping
the Win32::GUI windows from being displayed.
Does that sound reasonable to you experts? And does anyone have some
helpful advice about how I can arrange for these windows to be
displayed?
I know very little about the environment in which you are invoking Perl,
but...
Is it possible for you to eliminate the SW_HIDE option, and see if
everything works, except for the side effect that you also get a console
window? If that is the case, then you could, in the ShellExecute call,
execute wperl.exe instead of perl.exe, which turns off the console
window a different way.
I'm wildly guessing that it may require explicitly making
them children of the window that Excel owns, but I'm not exactly sure if
that's reasonable, or how I would do it.
I wouldn't have even come up with such a guess, and have no clue if it
would be reasonable.
Thanks a whole bunch for any helpful advice!
--df
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
--
Glenn -- http://nevcal.com/
===========================
The best part about procrastination is that you are never bored,
because you have all kinds of things that you should be doing.