If I put an int into Visual Studio's watch window, I can use various format additions to display it in different ways. So if I have "int myVariable = 10;" in the code, I can put "myVariable,x" into the watch window to have it display as hex. Likewise, "myVariable,c" makes it take the low byte and display it as a character. All the format tricks are documented here.
Now, with an int, I can do this:
(char*)(&myVariable),4
The ",4" says to display 4 values of the array. That will let me see the integer as a string of 4 characters -- this is some old software I'm working with that has a bunch of 4-character encodings. But I can't do that trick with a value returned from a function:
(char*)(&foo()),4
because I cannot take the address of the returned function. Watch window reports an error.
Does anyone know a trick where I can put a function into the watch window and format its integer return value as a string of characters?