Hi there,
the problem I have is to read an INI-File.
Until now, I worked with wcscmp() like that:
ini = _wfopen( GPWini, L"r" );
while(fgetws(cText, 2000, ini) != 0)
{
wcscpy(variable1, cText);
if (wcscmp(variable1, L"[GoPal]\n\n") == 0 || wcscmp(variable1, L"[GoPal]\n") == 0 )
iniflag = TRUE;
{
if (wcscmp(variable1, L"Version=9") == 0 || wcscmp(variable1, L"Version=9\n") == 0 || wcscmp(variable1, L"Version=9\n\n") == 0 && iniflag == TRUE)
{
wcscat(variable, L"9xxxx \n");
}
}
}
iniflag = FALSE;
fclose(ini);
But now, I have to read out an individual Versio-Type, which is set by another application... not written in C.
I tried it with GetPrivateProfileString(), but with Windows CE it won´t work.
How can I get this INI-entry?
Greets
Pitter