Page 2 of 2

Posted: Wed Jun 18, 2003 8:52 am
by Fred
It's just an API call, I really doubt it's a PB fault. Could you post the VB code ?

Posted: Wed Jun 18, 2003 4:19 pm
by 8bit

Code: Select all

Dim tcprow2 As MIB_TCPROW
Dim ret as long
DoEvents
With tcprow2
.dwLocalAddr = inet_addr(ListView1.SelectedItem.Text)
.dwLocalPort = htons(ListView1.SelectedItem.SubItems(1))
.dwRemoteAddr = inet_addr(ListView1.SelectedItem.SubItems(2))
.dwRemotePort = htons(ListView1.SelectedItem.SubItems(3))
.dwState = MIB_TCP_STATE_DELETE_TCB
End With
ret = SetTcpEntry(tcprow2)
SO you see, its basically the same thing in purebasic.. Except for the DoEvents.. Maybe thats the difference? I dont see why that would affect it