Microsoft DirectX 8.1 (C++)

ID3DXEffect::GetString

Retrieves the string parameter associated with an effect.

HRESULT GetString(
  LPCSTR  pParameter,
  LPCSTR* ppString
);

Parameters

pParameter
[in] Name of the parameter to retrieve the vector from.
ppString
[out, retval] Pointer to a LPCSTR, containing the returned string.

Return Values

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

If you want to keep the string returned from this method, create a copy of the string. There is no guarantee that the string pointer will still be valid across mulitple calls to effect methods.

Requirements

  Header: Declared in D3dx8effect.h.
  Import Library: Use D3dx8.lib.

See Also

ID3DXEffect::GetString