Exemplo n.º 1
0
CIni::CIni(CString const& strFileName):
	m_strFileName(strFileName),
	m_bModulPath(true)
{
	if(m_strFileName.IsEmpty())
		m_strFileName = GetDefaultIniFile(m_bModulPath);
	AddModulPath(m_strFileName,m_bModulPath);
	m_strSection = GetDefaultSection();
}
Exemplo n.º 2
0
//////////////////////////////////////////////////////////////////////
// Konstruktion/Destruktion
//////////////////////////////////////////////////////////////////////
// Creates/Use file : "Drive:\ApplPath\ApplName.ini"
CIni::CIni(BOOL bModulPath /*= TRUE*/):
	m_bModulPath(bModulPath),
		m_bFromRegistry(FALSE)
{
	m_strFileName = GetDefaultIniFile(m_bModulPath);
//	m_strSection  = GetDefaultSection();
	m_strSection  = GetDefaultAppName();
	m_strAppName  = GetDefaultAppName();
}
Exemplo n.º 3
0
CIni::CIni(CIni const& Ini):
	m_strFileName(Ini.m_strFileName),
	m_strSection(Ini.m_strSection),
	m_bModulPath(Ini.m_bModulPath)
{
   if(m_strFileName.IsEmpty())
      m_strFileName = GetDefaultIniFile(m_bModulPath);
   AddModulPath(m_strFileName,m_bModulPath);
   if(m_strSection.IsEmpty())
      m_strSection = GetDefaultSection();
}
Exemplo n.º 4
0
CIni::CIni(CString const& strFileName, BOOL bModulPath /*= TRUE*/):
	m_strFileName(strFileName),
	m_bModulPath(bModulPath),
		m_bFromRegistry(FALSE)
{
	if (m_strFileName.IsEmpty())
		m_strFileName = GetDefaultIniFile(m_bModulPath);
	AddModulPath(m_strFileName,bModulPath);
	if (m_strAppName.IsEmpty())
		m_strAppName = GetDefaultAppName();
	m_strSection = GetDefaultSection();
}
Exemplo n.º 5
0
CIni::CIni(CIni const& Ini, BOOL bModulPath /*= TRUE*/):
	m_strAppName(Ini.m_strAppName),
	m_strFileName(Ini.m_strFileName),
	m_strSection(Ini.m_strSection),
	m_bModulPath(Ini.m_bModulPath),
	m_bFromRegistry(FALSE)
{
	if (m_strFileName.IsEmpty())
		m_strFileName = GetDefaultIniFile(m_bModulPath);
	AddModulPath(m_strFileName,m_bModulPath);
	if (m_strAppName.IsEmpty())
		m_strAppName = GetDefaultAppName();
	if (m_strSection.IsEmpty())
		m_strSection = GetDefaultSection();
}
Exemplo n.º 6
0
//////////////////////////////////////////////////////////////////////
// Konstruktion/Destruktion
//////////////////////////////////////////////////////////////////////
// Creates/Use file : "Drive:\ApplPath\ApplName.ini"
CIni::CIni():
	m_bModulPath(true)
{
	m_strFileName = GetDefaultIniFile(m_bModulPath);
	m_strSection  = GetDefaultSection();
}