Sign in to follow this  
dave

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

Recommended Posts

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

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