Solved

Win32::Process, GetProcessId() not being acknowleged...

Posted on 2000-03-30
2
403 Views
Last Modified: 2008-02-20
Hey !   Has anyone had any problems using Win32::process ?
Specifically, when I try something like

     Win32::Process::Create
                               ($ProcessObj,
                                "c:\\windows\\command\\start.exe",
                                "start /m perl " . $command,
                                0,
                                NORMAL_PRIORITY_CLASS,
                                ".")|| die ErrorReport();
         
         $pid = $ProcessObj->GetProcessId() ;

It complains :

Your vendor  has not defined Win32::process macro GetProcessId, used at inv.pl blah blah blah.

To which I can only observe :

Wasssssssssssssssssup ????
0
Comment
Question by:klestes
2 Comments
 
LVL 25

Accepted Solution

by:
clockwatcher earned 30 total points
ID: 2676627
Try this:

$pid = $ProcessObj->GetProcessID();

Instead of this:

$pid = $ProcessObj->GetProcessId();

-- Case-sensitivity.  Got to love it. ;-)
0
 

Author Comment

by:klestes
ID: 2680639
Thanks clockwatcher !

Now if only those damn voices would stop saying "you did use the -w flag, didn't you ?"
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now