http://qs321.pair.com?node_id=342447


in reply to Re: Ideas for implementing pShell
in thread Ideas for implementing pShell

Great! This is useable code for this project! PodMaster++


Jouke Visser, Perl 'Adept'
Using Perl to help the disabled: pVoice and pStory

Replies are listed 'Best First'.
Win32::API caveat
by PodMaster (Abbot) on Apr 05, 2004 at 11:46 UTC
    Another thing I've just discovered is that you cannot wrap
    Win32::API::->Import( "user32", "DWORD GetWindowThreadProcessId( HWND hWnd, LPDWORD lpdwPr +ocessId)" ) or die $^E;
    in a begin block. If you do, it won't work properly. For example if you tried GetWindowThreadProcessId($handle, $procid); $procid would not be populated with the process id as is expected. This drove me crazy 10min ago.

    update: also, be sure the new parent window has wxCLIP_CHILDREN on, otherwise flicker galore

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      I am completely Lost now,.... Blackadder
        Oh yes,clear as mud,..are you showing off????

        Damn! losing points and still don't understand this scribbles.

        surely there is something more simpler form me to understand that all this examplish thing....surely!!!!!!!

        Thanks anyway. Blackadder