sx_SetStringType

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_SetStringType

C Declaration

VOID FAR PASCAL sx_SetStringType

(USHORT uiStringType);

Description

Indicate whether strings returned should be formatted as Visual Basic variable length strings or "C" type binary zero delimited strings.

The default value is to return Visual Basic strings. C programs must always set the string type in their initialization routine.

Parameters

uiStringType: Set uiStringType to 1 if C strings are to be returned. A setting of 0 returns Visual Basic variable length strings.

C Example

// handle initialization procedures when window

// creation message is received

case WM_CREATE:

sx_SetStringType(1);

sx_SetDateFormat(ANSI);

sx_SetCentury(TRUE);

sx_SetDeleted(TRUE);

hdc = GetDC(hWnd);

GetTextMetrics(hdc, &tm);

icxChar = tm.tmAveCharWidth;

icyChar = tm.tmHeight + tm.tmExternalLeading;

ReleaseDC(hWnd, hdc);

break;