HOWTO: Send and Receive UDT's Using the Winsock Control (152058)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Internet ActiveX Controls 1.0
This article was previously published under Q152058 SUMMARY
The Winsock control methods SendData and GetData send and receive data
through an argument declared of type variant. The following variant types
are supported:
Byte vbByte
Integer vbInteger
Long vbLong
Single vbSingle
Double vbDouble
Currency vbCurrency
Date vbDate
Boolean vbBoolean
SCODE vbError
String vbString
Byte Array vbArray + vbByte
Because user-defined types are not directly supported, you must make use of
the byte-array data type in order to pass a user-defined type with the
Winsock control. This article demonstrates how to send and receive data
contained in a user-defined type with the Winsock Control.
Modification Type: | Minor | Last Reviewed: | 3/18/2005 |
---|
Keywords: | kbAPI kbnetwork kbWinsock KB152058 |
---|
|