Advanced PowerBuilder

HomePrevious Lesson: Declaring External Functions
Next Lesson: External Function Arguments

Datatypes For External Function Arguments

When you declare an external function, the Datatypes of the arguments must correspond with the Datatypes declared in the function's source definition. The following table lists C++ Datatypes and the corresponding PowerBuilder Datatypes.

The PowerBuilder Datatype you select, depends on:

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.

Datatype in source code

Platform

PowerBuilder Datatype

* (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

HomePrevious Lesson: Declaring External Functions
Next Lesson: External Function Arguments