4
1. Ethernet 4-27
Network Communications
• Notes on use of the sample programs
The data type to be set when creating a program varies depending on whether Visual
C++ or Visual Basic is used. For the data type and range, refer to the following tables.
Visual C++
Visual Basic
Visual C++ VB
BYTE Byte
short
Integerunsigned short
WORD
int
Longlong
DWORD
char String
Data Type Bytes Data Range
BYTE 1 0 to 255
short 2 −32768 to 32767
unsigned short 2 0 to 65535
int 4 −2147483648 to 2147483647
long 4 −2147483648 to 2147483647
WORD 2 0 to 65535
DWORD 4 0 to 4294967295
char 1 −128 to 127
Data Type Bytes Data Range
Byte 1 0 to 255
Boolean 2 TRUE(0) / FALSE(−1)
Integer 2 −32768 to 32767
Long 4 −2147483648 to 2147483647
Double 8 4.94E−324 to 1.79E+308
String Variable 0 to 2 GB