This is how SOS used GetPrivateProfileString in TM_MER, and I used it in my LVZ toggler because I liked it: //Load Functions, Courtesy of SOS
#define G(name) ZeroMemory(buffer, 192);\
GetPrivateProfileString(!@#$%^&*le.msg, name, "-1", buffer, 192, Path)
#define G2(a) if (isNumeric(buffer))\
a = getInteger(buffer, 10);\
else\
a = 0
#define G3(a) if (isNumeric(buffer))\
a = getLong(buffer, 10);\
else\
a = 0
void botInfo::load()
{
char Path[520];
GetCurrentDirectory(520, Path);
strcat(Path, "\\lvztoggle.ini");
char buffer[192];
String !@#$%^&*le = "Objects";
G("TimeInterval");
G2(interval);
...
} where interval is an int defined in spawn.h Cyan prefers to use GetPrivateProfileInt, which you can certainly also use. Another thing you might want to look for is the INIAccess class that Dustpuppy wrote for the old EXPLBot