?/TD>
Microsoft DirectX 9.0

DXTRACE_ERR_MSGBOX Macro


Displays a message box with error information.

Syntax

HRESULT DXTRACE_ERR_MSGBOX(


    char *str,     HRESULT hr );

Parameters

str
[in] Pointer to a string to be displayed in the message box.
hr
[in] HRESULT containing an error code. This value will be passed to DXGetErrorString9 and converted to the equivalent name.

Return Value

Returns the HRESULT that was assigned to hr.



Remarks

The string and error name is accompanied by the file name and line number. The macro declaration is:

DXTRACE_ERR_MSGBOX(str,hr) DXTrace(__FILE__,(DWORD)__LINE__,hr,str,TRUE)

Macro Information

Headerdxerr9.h
Minimum operating systems Windows 98


© 2002 Microsoft Corporation. All rights reserved.