Why don't the following funktions don't work???

int CSearch::SucheDateien(CString nextdir)
{
CString curdir = nextdir;
CString appname;
CString ftpfilename;
CString winfilename;

m_Ordner = nextdir;

CFileFind ftpFind;

BOOL bContinue = ftpFind.FindFile(curdir + "\\*.*");

while (bContinue > 0)
{
bContinue = ftpFind.FindNextFile();
appname = ftpFind.GetFileName();

if (appname == "." || appname == "..")
{
}
else
{
if (ftpFind.IsDirectory() != 0)
{
nextdir = curdir + "\\" + appname;
SucheDateien(nextdir);
}
else
{
if (m_filename.Find("*") == -1)
{
ID3_Tag myTag;
myTag.Link ("appname");

ID3_Frame *myFrame;

if (myFrame = myTag.Find(ID3FID_TITLE))
{
char title[1024];
myFrame->Field(ID3FN_TEXT).Get(title, 1024);
MessageBox(title);
}
}
}
}
}

ftpFind.Close();

return 1;

}




I open the directory with this code

void CSearch::OnOpen()
{
// TODO: Code für die Behandlungsroutine der Steuerelement-Benachrichtigung hier einfügen
CDirDialog ordner;

ordner.m_strTitle = _T("Wählen Sie einen Ordner aus ...");

ordner.DoBrowse();

m_Ordner = ordner.m_strPath;
UpdateData(FALSE);

}

it will realy work!!