CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: CFileFind

  1. #1
    Join Date
    Jan 2009
    Posts
    42

    CFileFind

    I am working with a function that is searching for files. I want to give it a directory, and have it search every directory and file within that initial directory. I know in .net there is a files->length, and this is what I am looking for but in MFC. I checked and I didn't seem to find anything equivalent for CFileFind. Does anybody know a way to do this?

  2. #2
    Join Date
    Feb 2002
    Posts
    3,788

    Re: CFileFind

    search the FAQ's - you'll find your answer

  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: CFileFind

    Quote Originally Posted by cardio5643 View Post
    ... and this is what I am looking for but in MFC. I checked and I didn't seem to find anything equivalent for CFileFind. Does anybody know a way to do this?

    CFileFind is an MFC class which is a wrapper for APIs FindFirstFile/FindFirstFile/FindClose.
    And CFileFind is the first link Google shows you if you search for CFileFind.
    Victor Nijegorodov

  4. #4
    Join Date
    Aug 2008
    Posts
    112

    Re: CFileFind

    Quote Originally Posted by cardio5643 View Post
    .... I know in .net there is a files->length, and this is what I am looking for but in MFC....
    Yes, but also note that .Net's built-in directory/file functions will not run through all directories and files even with or without permits

    Regards.

    ~V
    hi,,,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured