473,385 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

connect another computer on LAN

3
thanks for ur help sashi.

i found some code which connects a computer to connect to another on a LAN. the site is below.
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=66898&lngWId=1

the probelm is this:
when i attempt to supply a username and password to the ErrInfo function, i get an error. Error 1326

ErrInfo = WNetAddConnection2(NetR, me.txtpword, me.txtuname, CONNECT_UPDATE_PROFILE)

any ideas.
thanks in advance
Nov 10 '06 #1
2 4892
sashi
1,754 Expert 1GB
thanks for ur help sashi.

i found some code which connects a computer to connect to another on a LAN. the site is below.
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=66898&lngWId=1

the probelm is this:
when i attempt to supply a username and password to the ErrInfo function, i get an error. Error 1326

ErrInfo = WNetAddConnection2(NetR, me.txtpword, me.txtuname, CONNECT_UPDATE_PROFILE)

any ideas.
thanks in advance
Hi There,

The error no. 1326 refers to <logon failure / unknown domain name / untrusted domain>, make sure you have enough permission to connect to the specified domain. Also make sure you have specified a valid drive letter <x:> and valid sharename to connect to. Good luck & take care.
Nov 10 '06 #2
ver
3
figured it out.
thanks

Hi There,

The error no. 1326 refers to <logon failure / unknown domain name / untrusted domain>, make sure you have enough permission to connect to the specified domain. Also make sure you have specified a valid drive letter <x:> and valid sharename to connect to. Good luck & take care.
Nov 10 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Brad Clements | last post by:
I'm trying to get a simple service to work with py2exe and python 2.3 I get this error when I start it (after registering it) The description for Event ID ( 240 ) in Source ( UMXWIN32SVC )...
0
by: RTT | last post by:
here is my current situation. I develop a program on my computer's localhost. From there i contact Active directory succesfull using a connectionstring like:...
2
by: iwdu15 | last post by:
hey, i was wondering if 1) anyone could tell me whats wrong with my code, i did a little fixing to the msdn version fo this, or 2) how to make a simple program that will connect and listen for...
1
by: Wade | last post by:
Is it possible to connect to a SQL 2005 Express db using Visual Basic 2005 Express? I cannot get past the connection.open statement without the error "...Version=2.0.0.0;...
0
by: Wali Khan | last post by:
HI, I have developed a window service in VB.NET to connect to VSS and some operations are followed. Problem is i am unable to connect to VSS when i install the Service.When i m debugging as an...
3
by: asemeiks | last post by:
I'm using Access 97, Jet 4.0. the data resides on a Win 2000 domain server. Using .Net 1.1 and IIS 5.0 on a local XPPro computer I am trying connect to a Jet database on the server. If the data...
3
by: dmcquay | last post by:
Hi, I am setting up MySQL on a development box. I have set it up and can connect from localhost, but I cannot connect from another computer on the network. I have narrowed down the problem...
8
by: BD | last post by:
I am developing C# win form app to work with remote database on SQL Server 2005. Problem scenario is as follows: 1. a form is open that has downloaded dataset to local cache 2. computer is...
2
by: =?iso-8859-1?Q?Vicente_Garc=EDa?= | last post by:
Hello all, I have an a bit strange printer and I would like to connect a C# program running on my computer to the printer. I know that the printer can be connected by LAN (TCP/IP protocol,...
7
by: RN1 | last post by:
Is it possible to connect to my local SQL Server 2005 database from a remote web server? If yes, what ConnectionString do I use? Thanks, Ron
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.