int IniFile::GetEntryCompatibleValueI(LPCTSTR lpcszKey, LPCTSTR lpcszEntry1, LPCTSTR lpcszEntry2, int nDefault) { size_t nEntry = FindEntry(lpcszKey, lpcszEntry1); if (nEntry != InvalidIndex) return GetValueI(lpcszKey, lpcszEntry1, nDefault); return GetValueI(lpcszKey, lpcszEntry2, nDefault); }
BOOL IniFile::GetValueB(LPCTSTR lpcszKey, LPCTSTR lpcszEntry, BOOL bDefault) { return (BOOL)GetValueI(lpcszKey, lpcszEntry, (int)bDefault); }
bool CIniFile::GetValueB(const string §ion, const string &key, bool const defValue) const { return (GetValueI( section, key, int( defValue)) != 0); }