CFile Access Problems

How do I read files to populate a list control of files without errors such as

"Access to $Recycle.Bin$ was denied"
I got it down to this line of code..I tried to truncate it..didn't work
1
2
  pFile = new CFile(fdFind.cFileName,
       CFile::modeRead | CFile::modeNoTruncate);


To make things more clear. Type the directory into the EDIT BOX..such as c:\

and the list will populate with all the files


o......one last thing..the line of code is to get the file size of a file
Last edited on
Topic archived. No new replies allowed.