From: Matthew G. <mat...@gm...> - 2007-09-27 10:53:58
|
在 2007-09-27四的 17:44 +0700,Yurik V. Nikiforoff写道: > > If I write: > cout<<text_ctrl_info_cfgver->GetValue().ToDouble(&d)<<endl; > > I get zero, but "d" have proper value (2). > > > 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 Matt |