Sign in to follow this  
Waaayoff

Question about converting gibberish error messages into readable ones?

Recommended Posts

Let's say this code, for whatever reason, caused an error: d3d->CreateDevice(Parameters here); Do people usually check for errors like this? if (FAILED(d3d->CreateDevice(Parameters here))) ::MessageBox(hWnd, L"Creating a device failed", L"ERROR", NULL); Or is there a more efficient way? Also, since most of the functions seem to return an HRESULT value, what is this data type? And what would i do with this return value? Obviously i should create an HRESULT variable and use it to store the return value, but what am i supposed to do with this aquired information? Thanks :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this