int IGetProfileInt(const char * szKey, int iDefault) { char aszPath[512]; VGetIniFile(aszPath, sizeof(aszPath)); return GetPrivateProfileInt(s_aszApp, szKey, iDefault, aszPath); }
void VGetProfileSz(const char * szKey, const char * szDefault, char * szOut, int cbOut) { char aszPath[512]; VGetIniFile(aszPath, sizeof(aszPath)); GetPrivateProfileString(s_aszApp, szKey, szDefault, szOut, cbOut, aszPath); }
int IGetProfileInt(const char * szKey, int iDefault) { #ifdef TARGET_WIN char aszPath[512]; VGetIniFile(aszPath, sizeof(aszPath)); return GetPrivateProfileInt(s_aszApp, szKey, iDefault, aszPath); #else return iDefault; #endif }
void VGetProfileSz(const char * szKey, const char * szDefault, char * szOut, int cbOut) { char aszPath[512]; #ifdef TARGET_WIN VGetIniFile(aszPath, sizeof(aszPath)); GetPrivateProfileString(s_aszApp, szKey, szDefault, szOut, cbOut, aszPath); #else strcpy(szOut, szDefault); #endif }