float getIniValueAsFloat(LPCSTR section, LPCSTR key, LPCSTR iniFile) { DWORD length = 255; string s; GetPrivateProfileString(section, key, "0", (LPSTR)s.c_str(), length, iniFile); return atof(s.c_str()); }