version 2003
PA_UsePStrings
Parameter | Type | Description | ||||
This command does not require any parameters |
Description
The routine PA_UsePStrings tells the API to send/receive Pascal strings in every call that use strings.
NOTE FOR Macintosh DEVELOPERS
By default, C strings are used when compiling for MacOS, since all the API uses the type char * for strings, instead of unsigned char *. Using C strings by default avoids typecasting when calling the API's routines. In order to call Macintosh traps using the Str255 type, you should call PA_UsePStrings when necessary or use it before calls to Macintosh traps, and then restore strings by calling PA_UseCStrings.
See Also
About strings and characters, PA_UseCStrings.
Error Handling
PA_GetLastError keeps the last error that occurred before calling PA_UsePStrings.