Beispiel #1
0
/*---------------------------------------------------------------------------------------------
Name				:	GetDir(int nIndex = -1)
Purpose				:	Get 0 based nIndex folder string 
Parameters			:
int  nIndex -	If nIndex = -1 the return string is the full dir string 
[e.g.: "\folder\subfolder\" or "\\pcname\folder\" for non-local]
Return				:	CString - Directory
Globals Modified	:	None.
--------------------------------------------------------------------------------------------*/
CString CPath::GetDir(int nIndex)
{
	if (nIndex < 0)
		return _strDir;
	else if (nIndex < GetDirCount())
	{
		FillDirArray();
		return _arrDir[nIndex];
	}

	return sCEmptyString;
}
Beispiel #2
0
CString CPathFinder::GetDir(int nIndex)
{
	if (nIndex < 0)
		return _sDir;
	else if (nIndex < GetDirCount())
	{
		FillDirArray();
		return _aDir[nIndex];
	}

	return (LPCTSTR)sCEmptyString;
}
Beispiel #3
0
int CPath::GetDirCount()
{
	FillDirArray();
	return((int)_arrDir.GetSize());
}
Beispiel #4
0
int	CPathFinder::GetDirCount()
{
	FillDirArray();
	return _aDir.GetSize();
}