Thursday, December 22, 2005

How to format expresions in the watch window of visual studio 2003

I have been trying to add a wariable in the watch window and try to see his value in char format (the value was a byte). I have been reading the unuseful help of visual studio 2003, and I haven“t found nothing useful.

The solution to format, it is using exactly the same as in the lenguage. If you have a byte value, and you want to see this value as a char, you can write in the watch window (char)cnt, and the watch window will show something like 'R'. Useful, but specially if this was in the help.

0 Comments:

Post a Comment

<< Home