1

When creating a

<DisplayString>{a_char,c}</DisplayString>

in a .natvis file, the char is being displayed as f.e.

82 'R'

I'm looking for a way to display it as

'R'

e.g. without the number.

jesses
  • 559
  • 3
  • 15

1 Answers1

1

The somewhat expressive way to achieve this is to treat it as a string with length 1

<DisplayString>'{&amp; a_char,[1]nasb}'</DisplayString>

which results in f.e.

'R'

jesses
  • 559
  • 3
  • 15