All pastes #759348 Raw Edit

Someone

public cpp v1 · immutable
·published 2007-11-03 01:37 UTC
rendered paste body
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	3878Error	37	error C2664: 'GetPrivateProfileStringA' : cannot convert parameter 4 from 'std::string' to 'LPSTR'	c:\black\d3d\d3d9dev.cpp	3880Error	35	error C3861: 'getIniValueAsFloat': identifier not found	c:\black\d3d\d3d9dev.cpp	3149