Is there a better way to convert a wchar_t to float? I've only found one solution that actually works.
wchar_t buf = GetText(); // GetText() returns a wchar_t
float fNumber1 = _wtof(&buf);
I've tried the following as well that fail:
float fNumber1 = (float)GetText(); // returns the ascii code
float fNumber1 = _wtof(&GetText();
float fNumber1 = _wtof(&(GetText()));