Read INI file.

I have an ini file in which those blow are written.

[CONFIGURATION]
URL=FALSE
FONT TYPE=sth
FONTSIZE=9


GetPrivateProfileStringW(_T("CONFIGURATION"), _T("URL"), _T("FALSE"), urlConfig, sizeof(urlConfig), FileName);
It works, which means i can get "FALSE" from the ini. However,

int temp;
temp = GetPrivateProfileIntW(_T("CONFIGURATION"), _T("FONTSIZE"),0, _T("./dar.ini"));
it dosn't work. I dubugged it and check the value of temp, but
no values is in it.

What's wrong with it??

I need to get int values from that.

help me.
Topic archived. No new replies allowed.