On 2007-09-18 05:19:51 -0400, frohlinger@gmail.com said:
> Hi,
> I need to perform some numeric calculations on a numeric float value,
> that is received as wstring.
> I would like to perform a check before converting the wstring to
> float, checking that indeed the wstring contains a numeric value.
> This is the actual conversion:
> double fValue = _wtof(strValue.c_str());
I don't know where you got wtof from, but the standard way of
converting would be to use wcstof, which gives you the information you
need.
--
Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The
Standard C++ Library Extensions: a Tutorial and Reference
(www.petebecker.com/tr1book)