Tuesday, May 29, 2007

The @ERR pseudoregister in debugging MSVC++

If you want to know the error code, you can add int test = GetLastError(); in the lines you want to know.

 

But there is a simple way to get that:

Using @ERR,hr in your watch window, you'll get the error all the time when debugging.

 

http://www.codeproject.com/debug/pseudoregister.asp

 

No comments: