Just like Richard, it works without changing anything. Since the function expects pointers, the alternatives would be:
CString tempo = _T("0.0057");
double d_tempo = _ttof(tempo.GetBuffer());
wchar_t const* tempo2 = _T("0.0057");
double d_tempo2 = _ttof(tempo2);