VB Code:
  1. Public Type sockaddr_in
  2.     sin_family       As Integer
  3.     sin_port         As Integer
  4.     sin_addr         As Long
  5.     sin_zero(1 To 8) As Byte
  6. End Type
  7.  
  8. Dim addr As sockaddr_in
  9. Dim ip As String
  10. [b]ip = inet_ntoa(addr.sin_addr)[/b]
It errors "Object variable or With block variable not set" on the bold line. I researched this on MSDN and it says I have to "Dim something As Object" and "Set someting = ????" for it to work. What must I be doing?

MSDN article = http://msdn.microsoft.com/library/de...gobjnotset.asp