Share via


StringFromResource

 
Microsoft DirectShow 9.0

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.

Requirements

**  Header:** Declared in Wxutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also