Microsoft DirectX 8.1 (C++)

DXGetErrorDescription8

Returns a string that describes a Microsoft® DirectX® HRESULT value.

const char* DXGetErrorDescription8(
  HRESULT hr,
);

Parameters

hr
[in] Any HRESULT return code from Direct3D®, DirectPlay®, DirectMusic®, DirectSound®, DirectInput®, and DirectShow®.

Return Values

Returns a pointer to a character string that describes the HRESULT code.

Requirements

  Windows NT/2000/XP: Requires Windows® 2000.
  Windows 98/Me: Requires Windows 98 or later. Available as a redistributable for Windows 98 and later.
  Version: Requires DirectX 8.1.
  Header: Declared in Dxerr8.h.
  Import Library: Use Dxerr8.lib