API calls

Just starting out? Need help? Post your questions and find answers here.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It's just an API call, I really doubt it's a PB fault. Could you post the VB code ?
8bit
User
User
Posts: 11
Joined: Sat Jun 14, 2003 3:33 pm
Contact:

Post 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
Post Reply