Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: Win32-API-Prototype WNet

by mdillon (Priest)
on Mar 02, 2005 at 04:48 UTC ( #435691=note: print w/ replies, xml ) Need Help??

in reply to Re: Win32-API-Prototype WNet
in thread Win32-API-Prototype WNet

First, you probably want to add use warnings after use strict. This may or may not make some warnings pop out.

Next, if you look on the home page for Win32::API::Prototype, you'll see that all their examples of using ApiLink all have || die after them. This makes it so that the program will stop executing if it can't link the api call. It will also tell you what line it was on when it died. You can also add an informative message like "could not link WNetCloseEnum". Read all about it with perldoc -f die.

Comment on Re^2: Win32-API-Prototype WNet
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://435691]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-07-31 01:04 GMT
Find Nodes?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:

    Results (242 votes), past polls