Advertisement Jump to content
Sign in to follow this  
dave

Is there a WIN32 function that returns the full error description?

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

... if i pass it the value returned by GetLastError()? This would be useful otherwise i will have to do it manually. ace

Share this post


Link to post
Share on other sites
Advertisement
I use it in my error function :)


char ErrorTranslation[MAX_PATH];
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, GetLastError(), 0, ErrorTranslation, MAX_PATH, 0);

Share this post


Link to post
Share on other sites
Hint:
I have used following "code" in watch -window for debugging:
@err, hr

This one displays current error description and works at least in VC6.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!