Microsoft DirectX 8.1 (C++) |
The WideStringFromResource function loads a wide-character string from a resource file with the given resource identifier.
Syntax
WCHAR * WINAPI WideStringFromResource(
WCHAR *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
Property pages are typically called through their COM interfaces, which use wide-character strings regardless of how the binary is built. This function allows you to convert a resource string to a wide-character string. The function converts the resource to a wide-character string (if it is not already one) after loading it.
See Also