Article View: borland.public.cppbuilder.nativeapi
Article #1566Re: Weird problem with WNetAddConnection2()
From: Dennis Jones
Date: Mon, 16 Jul 2007 02:30
Date: Mon, 16 Jul 2007 02:30
19 lines
1874 bytes
1874 bytes
"Bob Reeves" <bob@somethinxtra.com> wrote in message news:469a536d@newsgroups.borland.com... > Not sure if anyone can help but I have ran into a weird problem with > WNetAddConnection2(), one of those "it should work but it doesn't" > problems... First off, the code is working fine in 14 locations with the > same computer/network setup. I would post the actual code but don't think > it > would help because it is working in more places than it isn't. This might be a silly question, but since you don't say *how* it fails, are you checking the result of GetLastError when the function fails? Surely that would lead you in the right direction. Is there any chance the problematic machine is trying to use the same IP address as (and therefore conflicting with) another machine on the network (perhaps via a secondary IP address that is assigned to the network card)? - Dennis
Technical Details
Message-ID:
<469ad848@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<469a536d@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,254af1c09c7e7947 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <469a536d@newsgroups.borland.com> Subject: Re: Weird problem with WNetAddConnection2() Date: Sun, 15 Jul 2007 19:30:33 -0700 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 71.245.109.58 Message-ID: <469ad848@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1184553032 71.245.109.58 (15 Jul 2007 19:30:32 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail