StrToInt()のDouble版を手作りする

#include <string>
・・・
const double StrToDouble(CString& s)
{
 return std::atof(s.GetBuffer(0));
}

ネタ元