Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




What's Max/min Possible Port Number For TCP/IP Conection?


Ppl i'm coding a network tool in VB and I would like to know what is the maximum and minimum possible port number for a TCP/IP conection.

- BUBUX




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Port Number Help
what port number should be used for a comp running windows me?

Port Number
I am using a virtual com port. The device is USB to rs232. I can get the PID,VID and serial number of the usb device. Is there a way to get the com port number widows has assigned it through VB6.

Port Number
If I know the server name I can 'ping' it and get the IP address. How can I find out its port# ?

Sorry, It's not a VB question and thanks for any help.

-vb

To Get Port Number
How can we get the port number of default modem on out system in VB

[Q] Available Port Number
When I'd like to know available port number, how do I get the number? Do you have any idea?
Thanky for your answer...

Port Number On Ethernet
I have an existing application where 2 software packages on 2 pc's communicate with each other via ethernet. I would like to replace the software on one of the pc's with my own vb software. My question is, how do I know what port number to use ?

Invalid Port Number
Hi,

I use config file with the port number and when the application start
it try to communicate with this port.
How can I check in the begining of the application if this port number is valid for the current port configuration in my computer.
I asked it because I got an error message "Invalid port number"
when I open the application in differnt computer.

THX

Tzachi

How To Change COM Port Number
I need to write a program in VB6 to list all of the available COM ports on a computer and allow the operator to change the COM port number. I can get the list of available COM ports using the WMI but how to I change the COM port number?


Thanks,
quantum1976

Winsock UDP And -number Port
Hello everybody

Well i need need a little help about connecting to -number port with UDP protocol and winsock, everything is fine if server has normal port, but if it has minus port i am unable to do that, well i think less then zero ports not even exist but some server has them so where is the clue? maybe they have other normal ports but how can i find out them?

Thank You

Hexes.

USB Port Number Acquire
Hi Guy's,

i need an expert, i'm trying to acquire USB port number via an external HUB connected to a PC.
i need to know which device is connected to each of the HUB ports
i'm uisng VB 2005, it will be great if someone have the answer i'm breaking my teeth on this.

THKS in advance

How To Change COM Port Number
I need to write a program in VB6 to list all of the available COM ports on a
computer and allow the operator to change the COM port number. I can get the list of available COM ports using the WMI but how to I change the COM port number?

I have to support a legacy program that looks for connections to devices on
specific com ports. Genius that this original programmer was, he hard coded
those com port numbers.

Currently we use a Digi edgeport with 4 serial ports. The Edgeport comes
with a utility that allows you to change the COM port numbers. However we
would like to move to single USB to serial devices (serialized of course),
which do not provide the same type of utility. I would like to write a VB6
program to help with setup by allowing the user to connect a terminator to a
serial port, send a message out to each available com port, and look for the
response. Once the user identifies the serial port I want to allow them to
change the com port number to one of the hard coded ports.

Of course they could use the device manager to change the com port numbers but I wanted to make an automated, easy to use utility, since the users will not be computer savy.

Any ideas?

Thanks,
quantum1976

Get The Modem Port Number
Hello , I'm developing a phone system using VB6 and i need to the API function that responsible to get the modem Com Port number.... Thanks For the Help

How To Change COM Port Number
I need to write a program in VB6 to list all of the available COM ports on a computer and allow the operator to change the COM port number. I can get the list of available COM ports using the WMI but how to I change the COM port number?

I have to support a legacy program that looks for connections to devices on specific com ports. Genius that this original programmer was, he hard coded those com port numbers.

Currently we use a Digi edgeport with 4 serial ports. The Edgeport comes with a utility that allows you to change the COM port numbers. However we would like to move to single USB to serial devices (serialized of course), which do not provide the same type of utility. I would like to write a VB6 program to help with setup by allowing the user to connect a terminator to a serial port, send a message out to each available com port, and look for the response. Once the user identifies the serial port I want to allow them to change the com port number to one of the hard coded ports.

Of course they could use the device manager to change the com port numbers but I wanted to make an automated, easy to use utility, since the users will not be computer savy.

Any ideas?

Thanks,
quantum1976


How To Change COM Port Number
I need to write a program in VB6 to list all of the available COM ports on a
computer and allow the operator to change the COM port number. I can get the list of available COM ports using the WMI but how to I change the COM port number?

I have to support a legacy program that looks for connections to devices on
specific com ports. Genius that this original programmer was, he hard coded
those com port numbers.

Currently we use a Digi edgeport with 4 serial ports. The Edgeport comes
with a utility that allows you to change the COM port numbers. However we
would like to move to single USB to serial devices (serialized of course),
which do not provide the same type of utility. I would like to write a VB6
program to help with setup by allowing the user to connect a terminator to a
serial port, send a message out to each available com port, and look for the
response. Once the user identifies the serial port I want to allow them to
change the com port number to one of the hard coded ports.

Of course they could use the device manager to change the com port numbers but I wanted to make an automated, easy to use utility, since the users will not be computer savy.

Any ideas?

Thanks,
quantum1976

Trace Listenning Port Number
Hi,

I would like to have multiple clients to connect to a server. Meaning that each client used a different port on the server. I'm looking for a server side code example of winsock accepting many clients but to no avail. What I've done is one client per socket.

My problem is:
How can i trace if "a port number have had opened" (or is connected by others client)? The purpose to do this is to avoid duplicate port number is assigned to the same client.
My code is generating a random port number (range from 1025 to 65534) before assign the port number to the client. I cannot gurantee if the randomly generated port number is being used by other application.

I am using VB Winsock control to do this.

Thanks!

Port Number Wont Change!
Hi there everyone, i am having a small problem with the Inet control. Firstly I am trying to connect to my ftp server, the server is not running on port 21 but port 23. Here's the code i am using to connect...


Code:

Inet1.url = qnftpdetails.txtftpaddy
Inet1.UserName = qnftpdetails.txtftpusername
Inet1.Password = qnftpdetails.txtftppassword
Inet1.RemotePort = qnftpdetails.txtftpport
Inet1.proxy = qnftpdetails.txtftpproxy
Inet1.protocol = icFTP
Inet1.Execute Inet1.url, "put " & App.Path & "DataList.html " & qnftpdetails.txtftpabs1 & "list.html"



im not sure what I am doing wrong since I am pretty new to using this control.

Cheers
Matt

API Call To Find An Available Port Number
Is there a windows api that would allow me to find the port number on a server?

Error 8002: Invalid Port Number
Hi Guys,

I get 'Error 8002: Invalid port number' error when trying to use MSCOMM. When i debugged, the CommPort property is set to '1' which is a common port number. When i press F5, the program continues itrs execution as normal.
Please explain me this illogical behaviour.

Regards,
Swapna

DirectX Direct Music Port Number?
When I play back my midi files, they appear to be going through something other than the directx midi player, they sound like crap! When I play the same music file using other directx 7 apps the music file sounds the way it should. The code I'm using is taken from posted demos on directmusic in dx7, but I'm not getting the proper sound. Is this the right code to initialize directmusic in DX7 to play midi files using direct x's default port? Thanks!!

On Local Error GoTo nomusic
Set objDMLoader = dx.DirectMusicLoaderCreate
Set objDMPerformance = dx.DirectMusicPerformanceCreate
objDMPerformance.Init Nothing, 0
objDMPerformance.SetPort -1, 80
objDMPerformance.SetMasterAutoDownload True
objDMPerformance.SetMasterVolume 1200
Exit Sub

nomusic:
etc,etc,etc exit sub

Error 8002: Invalid Port Number
Hi Guys,

I get 'Error 8002: Invalid port number' error when trying to use MSCOMM. When i debugged, the CommPort property is set to '1' which is a common port number. When i press F5, the program continues itrs execution as normal.
Please explain me this illogical behaviour.

Regards,
Swapna

How To Specify MS -SQL Server Port Number In Connection String
Hi,
I am trying to establish a connection with MS SQL server database. To do this I form a Connection String. In the connection String I specify the Database server name, User name and Password. Till this it is fine.
But my problem is I also want to specify the port number. by default it is 1433 for SQL Server, but what if SQL Server is running on some other port number. Then how do I specify this port number in Connection String?

Thanks,
Dipesh

Communicating To Serial Ports With Comm Port Number Greater Than 16
I want to connect to the serial port with comm port number greather than 16, im able to connect to ports with comm port number less than 17 using MSCOMM control in visual basic, but i need to communicate to ports till 256, can anyone please help me out on this.

Conection
Help!!! pls.
i could not find the answer.
sqlstring = "Provider= SQLOLEDB;" _
& "Data Source=" & txtservidor & ";" _
& "Initial Catalog= " & txtdb & ";" _
& " Integrated Security=SSPI;" _
& " Prompt=1; " _
& "Connect Timeout=35;"

I just want to:
a) The User not to select the server
b) Elimanate Buttons: OK, OPTION, ETC.
or
c) Just log in without prompt the screen.

Close Conection
Hi!
I need to make an app to hang up the modem conection.
How can I do that?
THank you!

Telephone Conection
Greetings to all;

In this occasion I want to please request them it guides me in the development of a small but powerful utility.

I need to develop a software that:
1.- Check out that in the machine is executing has a MODEM.
2.- Make a revision of the operation of the MODEM.
3.- Make a phone connection, where the telephone number, the user and the key are inside the application. I mean this data cannot be modified.

Reference Conection
Hi Guys,

I have tried to do pass a Conection By ref but i have found problems.
I have one VBA program that open and use this conection, than am try to pass this conection to a VB6 DLL program. I checked the conections status and every thing is right, like conection.state = 1.

but i got this error:

the args are wrong

Help With Multipli Conection
Hi Guys i need help with * CSocketMaster *
Link to CSocketMaster HERE

Does some1 know how to make multi conection with it ?
because with normal winsock i just use
Winsock(0) then it make's index so i can use it for for more conections
But how can i do that with CSocketMaster class? help me please !.

Thanks in advance

Conection Error
First, the solution to this problem is "Always" easy.

The APP is running on 30 PC under the same condition.
PC x after 2 or 3 hours working with the APP say this error (See attach).

The Connection is open, the sentece has to be executed always because is the save routine.

This is the sentence:
sqlstring = "Select * from suscripcion where id_suscripcion='" & id_suscripcion & "';"
rs.CursorLocation = adUseClient
rs.Open sqlstring, cnCaribe, adOpenDynamic, adLockOptimistic


where is the error?

Internet Conection
is there a way to conect and disdinect from the internet from a VB programe and get the stats that you have in the conection screen.

ADODB.conection
Dim oConn
Set oConn = CreateObject("ADODB.Connection")
oConn.open db_String

***
Run-time error '-2147467259(80004005)'
[DBNMPNTW] ConnectionOpen(CreateFile())


Any idea why I'm getting this error?
I tried it in an asp page and it worked fine.

Am I missing a project reference maybe?

Thank you,
jc

ADO COnection With CRViewer
Hi,

I have a problema with an app at work we are developing. This app has a form witha CRViwer that we call every time the user request to print a report from.

The problem is that in order to no to generate a run time error, before we open the report we close the ADO connection and after de form with the CRviwer is closed we re-opened.We use an Informix database with conn.CursorLocation = adUseClient

Is this correct? is there a way to open the reports without closing the connection?


Thanks in advance

How To Set Up An ODBC Conection
I would like to obtain some code to automatic set up an ODBC conection by calling the interface API of windows.

Disable The Network Conection
Does anyone know how to disable the network conection from within a VB app (on win 2000 machine)? i've searched the forum and google, but am having no luck.

ADODB.Conection With Password
Dear friendas. I'm using ADODB.Connection, but my Access database has a password.
How I do to open it?
I'm using standard protection and my password is teste
I'm do this but it's wrong:
#############################
With conexao
.Provider = "Microsoft.Jet.OLEDB.4.0"
.Properties("Data Source") = aplicacao & "MyMP3.mdb"
.Properties("pwd") = "teste"
.Open
End With

MS Access Conection Error
I have a MS Acces db on the server
Using vb6 i want to develop an exe to connect to this db
if the DSN="telephon"
and the domain is mydomain.com
i would like to know what is the connection string and what ole db provider should i use

Check If Internet Conection
anyone got any simple code to check if the pc is connected to the net?

Database Conection Error
Option Explicit
Dim roySQL As String
Dim mquery As Variant
Dim myDB As ADODB.Connection
Dim RS As ADODB.Recordset
Dim RS1 As ADODB.Recordset
Dim RS2 As ADODB.Recordset
Dim RS3 As ADODB.Recordset

Private Sub Command1_Click()
Load MenuSelenggaraCostumer
MenuSelenggaraCostumer.Show
NewCostumer.Hide
End Sub

Private Sub CommandCostumerMaintenanceMenu_Click()
Load MenuSelenggaraCostumer
MenuSelenggaraCostumer.Show
NewCostumer.Hide
End Sub

Private Sub CommandExit_Click()
End
End Sub

Private Sub CommandSave_Click()
With RS
.AddNew 'adding new record
.Fields("field1") = TextSoNo.Text
.Fields("field2") = TextDoNo.Text
.Fields("field3") = TextCosName.Text
.Fields("field4") = TextAddress.Text
.Fields("field5") = TextPostcode.Text
.Fields("field6") = ComboState.Text
.Fields("field7") = TextContactPerson.Text
.Fields("field8") = TextPhoneNo.Text <========error
.Fields("field9") = ComboDDDay.Text
.Fields("field10") = ComboDDMonth.Text
.Fields("field11") = ComboDDYear.Text
.Fields("field12") = ComboIDDay.Text
.Fields("field13") = ComboIDMonth.Text
.Fields("field14") = ComboIDYear.Text
.Fields("field15") = ComboCDDay.Text
.Fields("field16") = ComboCDMonth.Text
.Fields("field17") = ComboCDYear.Text
.Fields("field18") = ComboEDDay.Text
.Fields("field19") = ComboEDMonth.Text
.Fields("field20") = ComboEDYear.Text
.Fields("field21") = TextCompany.Text
.Fields("field22") = TextCPerson.Text
.Fields("field23") = TextPhoneNo.Text
.Update 'this updates the recordset etc.
End With
End Sub

Private Sub Form_Load()
Me.MousePointer = 11

Set myDB = New ADODB.Connection
myDB.CursorLocation = adUseClient

myDB.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" & App.Path & "Intelux.mdb;"
myDB.Open

Call StateLOAD
Call DayLOAD
Call MonthLOAD
Call YearLOAD

Do While Not RS.EOF
ComboState.AddItem RS!State 'List all the IDno items into the ComboBox
RS.MoveNext
Loop

Do While Not RS1.EOF
ComboDDDay.AddItem RS1!Day 'List all the IDno items into the ComboBox
ComboIDDay.AddItem RS1!Day
ComboCDDay.AddItem RS1!Day
ComboEDDay.AddItem RS1!Day
RS1.MoveNext
Loop

Do While Not RS2.EOF
ComboDDMonth.AddItem RS2!Month 'List all the IDno items into the ComboBox
ComboIDMonth.AddItem RS2!Month
ComboCDMonth.AddItem RS2!Month
ComboEDMonth.AddItem RS2!Month
RS2.MoveNext
Loop

Do While Not RS3.EOF
ComboDDYear.AddItem RS3!Year 'List all the IDno items into the ComboBox
ComboIDYear.AddItem RS3!Year
ComboCDYear.AddItem RS3!Year
ComboEDYear.AddItem RS3!Year
RS3.MoveNext
Loop

' Close Recordset
RS.Close
RS1.Close
RS2.Close
RS3.Close

' Clear the memory
Set RS = Nothing
Set RS1 = Nothing
Set RS2 = Nothing
Set RS3 = Nothing

Me.MousePointer = 0
End Sub

Sub StateLOAD()
Set RS = New ADODB.Recordset
RS.Open "SELECT * FROM [State] ", myDB, adOpenStatic, adLockReadOnly
End Sub

Sub DayLOAD()
Set RS1 = New ADODB.Recordset
RS1.Open "SELECT * FROM [Day] ", myDB, adOpenStatic, adLockReadOnly
End Sub

Sub MonthLOAD()
Set RS2 = New ADODB.Recordset
RS2.Open "SELECT * FROM [Month] ", myDB, adOpenStatic, adLockReadOnly
End Sub

Sub YearLOAD()
Set RS3 = New ADODB.Recordset
RS3.Open "SELECT * FROM [Year] ", myDB, adOpenStatic, adLockReadOnly
End Sub

Public Sub fillfields()
If Not (RS.BOF = True Or RS.EOF = True) Then
TextSoNo.Text = RS.Fields("Field1")
TextDoNo.Text = RS.Fields("Field2")
TextCosName.Text = RS.Fields("Field3")
TextAddress.Text = RS.Fields("Field4")
TextPostcode.Text = RS.Fields("Field5")
ComboState.Text = RS.Fields("Field6")
TextContactPerson.Text = RS.Fields("Field7")
TextPhoneNo.Text = RS.Fields("Field8")
ComboDDDay.Text = RS.Fields("Field9")
ComboDDMonth.Text = RS.Fields("Field10")
ComboDDYear.Text = RS.Fields("Field11")
ComboIDDay.Text = RS.Fields("Field12")
ComboIDMonth.Text = RS.Fields("Field13")
ComboIDYear.Text = RS.Fields("Field14")
ComboCDDay.Text = RS.Fields("Field15")
ComboCDMonth.Text = RS.Fields("Field16")
ComboCDYear.Text = RS.Fields("Field17")
ComboEDDay.Text = RS.Fields("Field18")
ComboEDMonth.Text = RS.Fields("Field19")
ComboEDYear.Text = RS.Fields("Field20")
TextCompany.Text = RS.Fields("Field21")
TextCPerson.Text = RS.Fields("Field22")
TextPhoneNo.Text = RS.Fields("Field23")
Else
MsgBox "Either you are at the first record or the last record.", vbExclamation, "Cannot Move"
End If
End Sub

Question
=======

When i running my programe, found an error " method or data not found "
can someone show me how to solve this problem

How REstart A Network Conection ?
When the Server starts up after a Client machine I saw that the Client donít connect, by itself, to the server (I mean T:,Y:,Z:, etc.). And when my app try use this connection it donít connect. To make this connection again I need open the Windows Explorer and double click on the connection that is not updated.

I ask you: How we can REmake this connection with VB?

Thanks in advance.
Jefferson

Conection With A Database With Password
I'm doin an aplication for an Access XP database. The aplication has to take de dates of the database, but the database has got a password. To do the database and aplication conection I have written this code:
dim ws as workspace
Set ws = CreateWorkspace("", "admin", "password", dbUseJet)
But when I try to run the aplication it makes an error and it says something like that:
"The aplication can't be inicializated. Works group information file doesn't appear or the table is open in an exclusive mode by other user"
The database is always closed, and I want it with a password. How can I open the database?
Thanks

Conection String For A Dataenviroment
Im using a datareport from vb6 and im trying to connect to my access db which i put a password on

this is my current code which was fine but i dont no where to add password info.
If DataEnvC_19.connectDWC.State Then DataEnvC_19.connectDWC.Close
DataEnvC_19.connectDWC.ConnectionString = App.Path & "Datbwc.mdb"

thanks for any help
looked through msdn and vb help but couldnt find what i needed.
prob just my inexperiance

VB Application And Remote Conection
From:†† "Fernando Oviedo via visualbasic-l" email@removed


I have an application of invoicing developed in vb installed in several points in the city and need to register all the operations in a central servant in line.† As it is the best suggestion to make it?



//

How To Establish Conection Between Vb And MS Access
How to establish a connection between VB 6.0 and MS Access 2000.....please help me what code has to be used since im new to this subject ....im feeling its bit complicated

Which Is Better ADO Connect Code Or Data Conection
In searching 1 record in 250,000 records of my SQL Server Database which is better
to use the ADO Connection in Code? or in the Project Data connection then use ADODC?
I need an advice from the experts pls.

THANKS IN ADVANCE

How To Change The Propierties Of TCP/Ip Network Conection With VB
Normally I access Internet trought network DSL connection. But if I want to disable my connection by changing the propiertes of gateway or any other change using VB, How do I get results?

This very important if I dont want to be conected while I'm not working in my computer in internet.
In a Dial Up connection people can simply double click in the Icon Connection, but in DSL conection in a network trought gateway we normally need to diable the conection manually by deleting the gateway data from the properties in the icon of Network connections.

But if I want to "Disconnect" my computer from the gateway, How to do with VB?

I'll will apreciate any help.

Luis

Adodc Conection String Problem
hi ,
This is about the most basic problem with database connectivity at design time . The ADODC control requires the connection string to contain the full path of the database before connecting . Obviously thats a problem . What i need to know is , can i keep the adodc control , remove the database path from the connction string and use the "app.path" to write in a dynamic run time connection string into the code . Will that work ? i mean does adodc work if theres no value in the connection string in the properites of the control ? i have a feeling it'll check the property and give an error . How do you all use ADODc controls and manage dynamic linking to the database ?

Dataenvironment Conection Insert Record
Hi people I need help...desprately,

Its been a while since i have programmed in VB6 WITH ACCESS.

I want to connect using the data environment. In there I have selected to do an SQL STATEMENT.

INSERT INTO `Engineer Table`
    (Engineer_Name, Engineer_Transit, Part_No,
    Purchase_Transit)
SELECT Engineer_Name, Engineer_Transit, Part_No,
    Purchase_Transit
FROM `Engineer Table

then in the vb code I  you wrote
'(dataenvirnment is named De1)so you are aware!
' engineers is the sql statement cammand name
all i want to be able to do is insert data into a database (Access)please could you show me the correct example or provide some clues.

text1 is the text box
engineers is the recordset
! is the collection or paramater
[engineers_name] is in the collection and is the name of the field in the database.
Help please.

text1.text = de1.engineers![engineers_name]

thanks Dapper

Winsock32 API, Conection Failes To The Peer Server
Hi There,
 This is a module in my TCP/IP class which basically
 uses the wsock32 API to make a  connection oriented
 socket (Type SOCK_STREAM).

 All the following works in initiating a connection.
 1)Initialize Winsock API
 2)Create new socket
 3)Bind socket to LocalHostIP
 4)Bind socket to RemoteHost   

After performing all these steps when I try to use the Connect function to connect to the remote host, the function
returns the value SOCKET_ERROR.
___________________________________________________________
Connect portion of the code.
WSAResult = connect(mlngSocket, msaRemoteAddr, Len (msaRemoteAddr))

If (WSAResult = SOCKET_ERROR) Then
     SetLastErrorCode "Error in OpenConnection::connect"
Else
     OpenConnection = True
End If
____________________________________________________________

When I check the return value of WSAGetLastError it is 0, I
I am unable to determine the cause of the failure as both
the server are located in the same domain.

1)Do the same program needs to run as well as in the peer server to which the connection is made?.

2)Do I need to do anything else besides these steps?.

Can anyone tell me what would be the reason my conection fails.

Kindest regards,
Chris.G

This is the function
--------------------
 Public Function OpenConnection() As Boolean
 Dim WSAResult As Long
 OpenConnection = False
     
 'Initialize Winsock API
 WSAResult = WSAStartup(&H101, mwsaData)
 If WSAResult <> WSANOERROR Then
     SetLastErrorCode "Error OpenConnection::WSAStartup"
     Exit Function
 End If
    
 'Create new socket
  mlngSocket = socket(PF_INET, SOCK_STREAM, 0)
  If (mlngSocket = INVALID_SOCKET) Then
       SetLastErrorCode "Error in OpenConnection::socket"
       Exit Function
  End If
    
  'Bind socket to LocalHostIP
  msaLocalAddr.sin_family = PF_INET
  msaLocalAddr.sin_port = 0
  msaLocalAddr.sin_addr.S_addr =
  inet_addr(mstrLocalHostIP)
   If (msaLocalAddr.sin_addr.S_addr = INADDR_NONE) Then
      SetLastErrorCode "Error OpenConnection::inet_addr"
      Exit Function
   End If
   WSAResult = bind(mlngSocket, msaLocalAddr, Len
(msaLocalAddr))

   If (WSAResult = SOCKET_ERROR) Then
        SetLastErrorCode "Error in OpenConnection::bind"
        Exit Function
   End If
    
   'Connect with remote host
   msaRemoteAddr.sin_family = PF_INET
   msaRemoteAddr.sin_port = htons(mlngRemotePort)
   msaRemoteAddr.sin_addr.S_addr = inet_addr(mstrRemoteHostIP)

   If (msaLocalAddr.sin_addr.S_addr = INADDR_NONE) Then
       SetLastErrorCode "Error  
        OpenConnection::inet_addr=INADDR_NONE"
        Exit Function
   End If
   
   msaRemoteAddr.sin_zero(0) = 0
   WSAResult = connect(mlngSocket, msaRemoteAddr, Len   
   (msaRemoteAddr))
   
   If (WSAResult = SOCKET_ERROR) Then
        SetLastErrorCode "Error in OpenConnection::connect"
   Else
        OpenConnection = True
   End If
End Function




Conection VB With Access "unrecoginzied Database Format"
Hi,
Friend I try to connect ms access with Vb6
the following massage appear
unrecognized database format
in properties
connection access
database name d:admin.mdb

what more step I need that massage do not appear


thx

Read Data From RS232 9 Pin(com Port) That Convert To USB Port
I need help how to write code, to retrive data from rs232 standrat communication, that convert to USB interface(cumputer)? Help me please!

Copyright © 2005-08 www.BigResource.com, All rights reserved