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

S

Shea Martin

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top