bug with wxVariant
Sebastien Senechal
seb at cyberdine.ca
Fri Sep 22 15:40:06 PDT 2006
This fails: all result will be 0
char tot = wxVariant("255").GetChar(); => =0x00
char tot2 = wxVariant("4").GetChar(); => =0x00
This will work
unsigned char tot = wxVariant("255").GetLong(); = 0xFF
unsigned char tot3 = wxVariant("4").GetLong(); = 0x4
1. How come such a BASIC functionnality does NOT work? (why does it even
return 0?)
2. if this is an intended behavior ?
does using GetLong and casting into unsigned char makes more sense ?
using 2.7
More information about the wx-users
mailing list