-
I have a
Code:
ri = Mid(CurWri, 9, InStr(CurWri, ",") - 9)
WinSock.Connect ByVal ri, ByVal Val(Mid(CurWri, Len(ri) + 1 + 9))
where ri is like ":connect 123.45.67.89,25".
When VBasic goes throuhg the code, I recieve an error Address is not available from this computer.
But when I write WinSock.Connect "123.45.67.89",25 into an Immediate window, it connects sucesfully.
Need I always use Immediate window to connect?
-
Well, try removing the ByVal in front of every line, like:
Quote:
Origionally posted by Jhd.Honza, modified by Escaflowne
Code:
ri = Mid(CurWri, 9, InStr(CurWri, ",") - 9)
WinSock.Connect ri, Val(Mid(CurWri, Len(ri) + 1 + 9))
-
I am sorry, I copied the code I have last tried. It doesn't work either with nor without ByVal. The worst thing is, that it works in my other applications, with same settings...