Why are you using db sdk to call win32 functions in C++
use the code I gave you before:
int ReadINIInt(char *section,char *label,char *filename)
{
int iTmp=GetPrivateProfileInt(section,label,0,filename);
return iTmp;
}
char *ReadINIString(char *section,char *label,char * filename)
{
char *buffer = (char*)malloc(MAX_PATH+1);
GetPrivateProfileString(section,label,0, buffer, MAX_PATH, filename);
return buffer;
}
void WriteINIData(char * section,char *label,char*str,char*filename)
{
WritePrivateProfileString(section,label,str,filename);
}