im trying to obtain a files name, and then make it into an array
CFileFind finder;
BOOL bWorking = finder.FindFile("C:\\*.mp3");
while (bWorking)
{
bWorking = finder.FindNextFile();
CString a = finder.GetFileName();
for(int n=0;n<=40;n++)
{
MessageBox(a[n]);
}
}
this doesnt work though, any ideas? also, notice that i said n<=40, but is there a way to get the size of a so i know what to say for n<= ?
CFileFind finder;
BOOL bWorking = finder.FindFile("C:\\*.mp3");
while (bWorking)
{
bWorking = finder.FindNextFile();
CString a = finder.GetFileName();
for(int n=0;n<=40;n++)
{
MessageBox(a[n]);
}
}
this doesnt work though, any ideas? also, notice that i said n<=40, but is there a way to get the size of a so i know what to say for n<= ?