Home

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)

previous
next

Re: default constructor
Re: Segmentation Fault On Program Termination?
Re: PyObject_CallObject: difference between functions and classmethods
Re: Python submodules and name imports
Re: How can I write a class with "string or char*" member variableto a file...?
Nasze Dzieci
Mam Marzenie
Niechciane i Zapomniane
Mimo Wszystko
Rodzic Po Ludzku