bug with wxVariant

Sebastien Senechal seb at cyberdine.ca
Wed Oct 11 19:21:26 PDT 2006


> SS> to fastest way for me to conver an int was to do
> SS> wxVariant(str).GetLong(). am i wrong?
>
>  This surely doesn't look like the fastest or most intuitive way to do it
> for me. I'd suggest wxString::ToLong().

by the way

This is a two steps fonction
long var;
str.ToLong(&var)

wxVariant(str).GetLong() ... is one line, no brackets, etc... faster.




More information about the wx-users mailing list