Re: Problem with adding a connection with Win32::NetResource



On Dec 27, 2007 3:15 PM, Nash <lontche@xxxxxxxxx> wrote:
snip
The program actually works if I omit the 'LocalName' definition in
line 4, i.e. it makes the connection. However, since I don't have a
local name I can't subseqently cancel the connection, and I'd like to
be able to do that.
With the local name definition, the program doesn't make the
connection, reporting an error code of 1200.

So:
1. What am I doing wrong?

You are not using the strict pragma (this doesn't effect your current
problem, but it is still a bad idea).

It also looks (based on the answer to your second question) like X: is
not a valid name. Is it possible that you have already mapped a drive
to X:?

2. Where can I find the error codes and their meanings?

I would suggest consulting the oracle:
http://www.google.com/search?q=smb+error+code+1200

From that search I learned the 1200 means "The specified device name
is invalid."
.



Relevant Pages

  • Re: LanManFS & Win XP
    ... Michael Hambley wrote: ... Connection using host name: ... I use Omniclient instead of Lanman but you have to enable clear text passwords otherwise PC will reject the ROS machine. ...
    (comp.sys.acorn.networking)
  • Re: Atheists
    ... We have typical backbone connection. ... as a LAN (local area network) within a vast WAN ... [snip other technical details] ...
    (alt.usage.english)
  • Re: Great SWT Program
    ... that amounts to my saying "the GUI paradigm sucks"? ... wise, than with things like vi, although it may have things in common ... if "dial-up speed connection" is broadened ...
    (comp.lang.java.programmer)
  • Re: Techy Q?s...
    ... >& it really shouldn't matter what the actual Internet Connection is? ... >Can I install PCguard on all the computers in my home network? ... >The way I deal with spam may not suit everybody. ...
    (uk.people.silversurfers)
  • Celebrity was Re: A definition of pagan
    ... I still think celebrity is the modern version ... rituals under Fleet Street that we should know about? ... Apart from The Strand Ley, an Elias Ashmole connection, a templar connection ...
    (uk.religion.pagan)