Help-> "Your vendor has not defined Win32::Process macro wait"

Discussion in 'Perl Misc' started by Shea Martin, Jul 13, 2005.

  1. Shea Martin

    Shea Martin Guest

    I create a win32 process like this:

    use strict;
    Win32::process::Create($g_sProcess,
    $cmd , $a_sCommand, 1, Win32::process::DETACHED_PROCESS, "." );

    # this does not work, though this is what examples show
    # Win32::process->Create($g_sProcess,
    # $cmd , $a_sCommand, 1, Win32::process::DETACHED_PROCESS, "." );

    Then in later in another subroutine:
    I do this:
    if( $g_sProcess->wait(5) )
    {
    $msg = "Previous command finished.\n";
    $g_sProcess = 0;
    }

    Which generates the error in the subject line: Your vendor has not defined
    Win32::process macro wait, used at yourscript.pl.

    What am I doing wrong here?

    Thanks,

    ~S
     
    Shea Martin, Jul 13, 2005
    #1
    1. Advertising

  2. Shea Martin

    Shea Martin Guest

    oops. I used 'wait' not 'Wait'.

    ~S
    "Shea Martin" <> wrote in message
    news:WO8Be.60592$...
    >I create a win32 process like this:
    >
    > use strict;
    > Win32::process::Create($g_sProcess,
    > $cmd , $a_sCommand, 1, Win32::process::DETACHED_PROCESS, "." );
    >
    > # this does not work, though this is what examples show
    > # Win32::process->Create($g_sProcess,
    > # $cmd , $a_sCommand, 1, Win32::process::DETACHED_PROCESS, "." );
    >
    > Then in later in another subroutine:
    > I do this:
    > if( $g_sProcess->wait(5) )
    > {
    > $msg = "Previous command finished.\n";
    > $g_sProcess = 0;
    > }
    >
    > Which generates the error in the subject line: Your vendor has not defined
    > Win32::process macro wait, used at yourscript.pl.
    >
    > What am I doing wrong here?
    >
    > Thanks,
    >
    > ~S
    >
     
    Shea Martin, Jul 13, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?dHJlbGxvdzQyMg==?=

    HELP! HELP! HELP! Opening Web Application Project Error

    =?Utf-8?B?dHJlbGxvdzQyMg==?=, Feb 20, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    813
    =?Utf-8?B?dHJlbGxvdzQyMg==?=
    Feb 20, 2004
  2. Harvey
    Replies:
    0
    Views:
    790
    Harvey
    Jul 16, 2004
  3. Harvey
    Replies:
    1
    Views:
    896
    Daniel
    Jul 16, 2004
  4. =?Utf-8?B?S2ltb24gSWZhbnRpZGlz?=

    HELP - HELP - HELP

    =?Utf-8?B?S2ltb24gSWZhbnRpZGlz?=, Mar 9, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    724
    Eliyahu Goldin
    Mar 9, 2006
  5. Buster

    Help, Help, Help

    Buster, Oct 4, 2003, in forum: Java
    Replies:
    3
    Views:
    505
    Saager
    Oct 30, 2003
Loading...

Share This Page