|
-
Sep 27th, 2000, 04:17 PM
#1
Thread Starter
Hyperactive Member
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?
-
Sep 27th, 2000, 05:51 PM
#2
Well, try removing the ByVal in front of every line, like:
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))
-
Sep 27th, 2000, 05:55 PM
#3
Thread Starter
Hyperactive Member
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|