|
Advanced PowerBuilder
Data types for
External Function Arguments
When you declare an external function, the
data types of the arguments must correspond with the data types declared in the function's
source definition. The following table lists C++ data types and the corresponding
PowerBuilder data types.
The PowerBuilder data type you select,
depends on:
 |
The data type in the DLL for the function. |
 |
Platform ( running on a 16-bit or 32-bit platform ). |
The 32-bit platforms that PowerBuilder
supports are Windows 95, Windows NT, Macintosh, and UNIX (Solaris). The 16-bit platform
that PowerBuilder supports is Windows 3.1x.
Data type in source code |
Platform |
PowerBuilder data type |
* (any pointer) |
Windows 3.1 , 95, NT |
Long |
| |
Macintosh |
UnsignedLong. |
Handle |
Windows 3.1 |
UnsignedInteger |
| |
32-bit Windows ( 95
& NT ), Macintosh |
UnsignedLong |
char * |
All |
Blob |
Strings |
|
|
char |
All |
char |
string |
All |
String |
Boolean |
Windows 3.1 , 95, NT |
Boolean |
| |
Macintosh |
char |
short |
All |
Integer |
unsigned short |
All |
Integer |
int |
Windows 3.1 |
Integer |
| |
Windows 95, NT, Unix |
Long |
unsigned int |
Windows 3.1 |
Integer |
| |
Windows 95, NT, Unix |
Long |
long |
All |
Long |
unsigned long |
All |
Long |
float |
All |
Real |
double |
Only Windows 95/NT |
Double |
date |
All |
Not Supported |
DateTime |
All |
Not Supported |
time |
All |
Not Supported |
|