Archived

This topic is now archived and is closed to further replies.

Are DirectX return values (HRESULT) unique?

This topic is 6279 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i.e., could it be that a DDRAWERRxxx is defined as the same value as a D3DERRxxx? i am asking because i want to write a generic function that converts all directx errors into strings. btw: are there any complete lists of all directx error values, so i don''t have to type them in manually? preferrably in form: case errorvalue: return "errorstring"; (for example) case DDRAWERR_UNINTIALIZED: return "DDRAWERR_UNINTIALIZED"; thanks rid

Share this post


Link to post
Share on other sites
Yes, some error values of DD and 3D have the same value.

But before you bother to write your own function take a look at the D3DXGetErrorString() function that comes with the DirectX7 SDK. It saves a lot of work even if you don''t want to use any other of the D3DX helper functions.

Share this post


Link to post
Share on other sites