bug with wxVariant

Robert Roebling robert at roebling.de
Sat Sep 23 05:57:07 PDT 2006


> This fails: all result will be 0
> 		char tot = wxVariant("255").GetChar();		=> =0x00
> 		char tot2 = wxVariant("4").GetChar();		=> =0x00

"char" is mostly interpreted as one part of a string, not
a number. Also, wxVariant is not made to be a container
for converting between basic types.

  Robert





More information about the wx-users mailing list