Site hosted by Angelfire.com: Build your free website today!
 

Powerbuilder and Windows API Datatype Conversion and Examples

Windows Type
PowerBuilder Type
Description
BOOL
Boolean
2-Byte signed integer
WORD
Uint
2-Byte unsigned integer
DWORD
Ulong
4-Byte unsigned integer
HANDLE
Uint
2-Byte unsigned integer
HWND
Uint
2-Byte unsigned integer
LPSTR
String
4-Byte FAR pointer
LPBYTE
String
4-Byte FAR pointer
LPINT
Long
4-Byte FAR pointer
LPWORD
String
4-Byte FAR pointer
LPLONG
Long
4-Byte FAR pointer
LPDWORD
Long
4-Byte FAR pointer
LPVOID
String
4-Byte FAR pointer
LPVOID
Blob
n-Byte FAR pointer
BYTE
Blob{1}
1-byte
char
Blob{1}
1-byte
char vhararray[10]
Blob{10}
10-byte
int
Int
2-byte signed integer
unsigned int
Uint
2-byte unsigned integer
long
Long
4-byte signed integer
unsigned long
Ulong
4-byte unsigned integer
double
Double
8-byte double precision float
double
Decimal
8-byte double precision float
float
n/a
4-byte single precision float