Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
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 lurking in the Monastery: (4)
As of 2022-12-07 20:26 GMT
Find Nodes?
    Voting Booth?

    No recent polls found