I'm trying to start a socket in a migrated application (from vb6 to vb.net)
I get 10014 after WSAStartup(257, sWSAData)
the socket structure I have is
Structure sockaddr
Dim sa_family As Short
<VBFixedString(14), System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=14)> Public sa_data As String
End Structure
How to solve this error of 'Bad address'?
I get 10014 after WSAStartup(257, sWSAData)
the socket structure I have is
Structure sockaddr
Dim sa_family As Short
<VBFixedString(14), System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=14)> Public sa_data As String
End Structure
How to solve this error of 'Bad address'?