Results 1 to 3 of 3

Thread: Code window is not Immediate window?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350
    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?

  2. #2
    Guest
    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))

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350
    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
  •  



Click Here to Expand Forum to Full Width