Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-09-30 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (386 votes), past polls