float getIniValueAsFloat(LPCSTR section, LPCSTR key, LPCSTR iniFile) { string s; GetPrivateProfileString(section, key, "0", s, "255", iniFile); return atof(s.c_str()); } Gives: Error 36 error C2365: 'getIniValueAsFloat' : redefinition; previous definition was 'formerly unknown identifier' c:\black\d3d\d3d9dev.cpp 3878 Error 37 error C2664: 'GetPrivateProfileStringA' : cannot convert parameter 4 from 'std::string' to 'LPSTR' c:\black\d3d\d3d9dev.cpp 3880 Error 35 error C3861: 'getIniValueAsFloat': identifier not found c:\black\d3d\d3d9dev.cpp 3149