TCHAR szKeyValue[32]; GetPrivateProfileString(("SECTION"), ("key1"), (""), szKeyValue, 32, ("\\Cluster.ini")); cout << szKeyValue;
I have the file "Cluster.ini" in the same directory. The contents are as follows
[SECTION] key1=false
I want to have up to 10 keys, but I will be changing their name later.
But I can't seem to get "GetPrivateProfileString()" working, I want to be able to read the keys in this case key1 to see if it is true or false, and then store the answer into a bool, but I just can't even start off by using this seemingly simple API.
I am using Windows 8.1 if it makes much of a difference.
Thanks for all to can help, I can provide more code I have if it would change anything.