Example C data type
|
DLL parameter data type
|
Data type size and usage
|
char
|
BYTE
|
8-bit unsigned integer
|
short
|
SHORT
|
16-bit signed integer
|
unsigned short
|
UNSIGNED-SHORT
|
16-bit unsigned integer
|
int1
long (32-bit UNIX, Win32)
|
LONG
|
32-bit signed integer
|
unsigned int2
|
UNSIGNED-LONG
|
32-bit unsigned integer
|
_int64 (Win32)
long long (UNIX 32-bit)
long (UNIX 64-bit)
|
INT64
|
64-bit signed integer
|
float
|
FLOAT
|
4-byte floating point
|
double
|
DOUBLE
|
8-byte floating point
|
char*
|
CHARACTER
|
Address (32 bits for 32-bit platforms, 64 bits for 64-bit platforms.)
|
c-data-type3
|
Address (32 bits for 32-bit platforms, 64 bits for 64-bit platforms.)
|
|
char*, output-pointer (which can be char**, short**, and so on), or a pointer to a structure
|
MEMPTR
|
Address (32 bits for 32-bit platforms, 64 bits for 64-bit platforms.)
|