sibasis
Technical User
- Mar 1, 2002
- 94
I am using ras dial to dial into a RAS Server
However if my connection gets disconnected by anything other than using the Ras Hangup Method, the next time I dial in it gives me a Error: 756 thats a connection already dialed error !! Is there any way to clear all active connections before attempting to use the Rasdial ?
the code I am using
Dim rtn As Long
Dim b() As Byte
Dim myDialParams As VBRasDialParams
Dim lngHConn As Long
Dim strPhonebook As String
With myDialParams
.entryname = "Test"
.UserName = "testaccount"
.Password = "dummydnzpass"
.PhoneNumber = "1 345 8888888"
End With
rtn = VBRasDialParamsToBytes(myDialParams, b)
rtn = RasDial(ByVal 0&, strPhonebook, b(0), 0&, 0&, lngHConn)
thanks in advance
However if my connection gets disconnected by anything other than using the Ras Hangup Method, the next time I dial in it gives me a Error: 756 thats a connection already dialed error !! Is there any way to clear all active connections before attempting to use the Rasdial ?
the code I am using
Dim rtn As Long
Dim b() As Byte
Dim myDialParams As VBRasDialParams
Dim lngHConn As Long
Dim strPhonebook As String
With myDialParams
.entryname = "Test"
.UserName = "testaccount"
.Password = "dummydnzpass"
.PhoneNumber = "1 345 8888888"
End With
rtn = VBRasDialParamsToBytes(myDialParams, b)
rtn = RasDial(ByVal 0&, strPhonebook, b(0), 0&, 0&, lngHConn)
thanks in advance