Microsoft DirectX 8.1 (C++)

StringFromResource

The StringFromResource function loads a string from a resource file with the given resource identifier.

Syntax

TCHAR * WINAPI StringFromResource(
    TCHAR *pBuffer,
    int iResourceID
);

Parameters

pBuffer

Pointer to the string corresponding to iResourceID.

iResourceID

Resource identifier of the string to retrieve.

Return Value

Returns the same string as pBuffer. If the function is not successful, returns a null string.

Remarks

The pBuffer buffer must be at least STR_MAX_LENGTH bytes.

See Also