Jump to content
  • Advertisement
Sign in to follow this  
Waaayoff

Question about converting gibberish error messages into readable ones?

This topic is 3033 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

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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!