Watch Window Formatting
-
A friend of mine introduced me to this "trick" with the watch window. When watching an HRESULT, you can format the result to something that makes a little more sense. Here's an example... If I have a variable
HRESULT hr;
and if I put hr,hr in the watch window it formats the value ofhr
into text. So if thehr = 0
the watch window would read "S_OK". Does anyone know of other cool watch window tricks like this? TIA Mark Donkers A witty saying proves nothing. -- Voltaire -
A friend of mine introduced me to this "trick" with the watch window. When watching an HRESULT, you can format the result to something that makes a little more sense. Here's an example... If I have a variable
HRESULT hr;
and if I put hr,hr in the watch window it formats the value ofhr
into text. So if thehr = 0
the watch window would read "S_OK". Does anyone know of other cool watch window tricks like this? TIA Mark Donkers A witty saying proves nothing. -- VoltaireYou mean something like here: http://msdn.microsoft.com/library/en-us/vcug98/html/\_asug\_symbols\_for\_watch\_variables.asp?frame=true don't you? And except that, you can use for example ERR, to show last error, instead of calling GetLastError(). Martin
-
You mean something like here: http://msdn.microsoft.com/library/en-us/vcug98/html/\_asug\_symbols\_for\_watch\_variables.asp?frame=true don't you? And except that, you can use for example ERR, to show last error, instead of calling GetLastError(). Martin
Martin, This is perfect! Thanks a million :-D Mark Donkers A witty saying proves nothing. -- Voltaire