Ejemplo n.º 1
0
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);
}
Ejemplo n.º 2
0
BOOL IniFile::GetValueB(LPCTSTR lpcszKey, LPCTSTR lpcszEntry, BOOL bDefault)
{
	return (BOOL)GetValueI(lpcszKey, lpcszEntry, (int)bDefault);
}
Ejemplo n.º 3
0
bool CIniFile::GetValueB(const string &section, const string &key, bool const defValue) const
{
   return (GetValueI( section, key, int( defValue)) != 0);
}