Loads of websites explain how to send text, datatypes or byte arrays using winsockControl.SendData
Files can be sent because one loads them as a byte array. However I need to know how to send a user defined type or an object created from a class file.
Public Type MyTpe
mystring As String * 15
myinteger As Integer
Dim MyTypeToSend As mooType
How do I get this to work: WinsockControl.SendData MyTypeToSend
Do I need to convert MyTypeToSend into a byte array? (saving it as an intermediate file and loading that file into a byte array is too slow)