Original Post
What is wrong with my code?
#include <iostream>
#include <windows.h>
#include <winsock.h>
int main(int argc, char **argv)
{
int useINI = GetPrivateProfileInt("defaults", "useDefaults", 300, "chat.ini");
cout << useINI << endl;
}
and chat.ini
[defaults] useDefaults=1and it give me 300! Whats with it?