From: Yurik V. N. <yu...@me...> - 2007-09-28 05:36:01
|
Hi Matthew! =F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 27 =D3=C5=CE=D4=D1=C2=D2=D1 2007 Mat= thew Gong =CE=C1=D0=C9=D3=C1=CC(a): > Yes, it just works like this! Check the manuals for wxWidgets: > > wxString::ToDouble > > bool ToDouble(double *val) const > > Attempts to convert the string to a floating point number. Returns true > on success (the number is stored in the location pointed to by val) or > false if the string does not represent such number I look into src. ToDouble() return true if all ok, and zero if some wrong. = But=20 conversion from string to double done right... Imho, problem is null-terminated string on my system - there is extended ch= eck=20 for it in ToDouble(). May be, wxStrtod( start, &end) ?=20 =2D-=20 Wbr, Yurik |