Visual C the best way to get the contents of a file directory into a list

Source: Internet
Author: User
Http://www.codecomments.com/archive371-2006-2-825947.html

& Lt; TD width = "100%" & gt; & Lt; TD width = "100%" & gt; & Lt; TD width = "100%" & gt; & Lt; TD width = "100%" & gt; & Lt; TD width = "100%" & gt;
Author How to get a list of files in a directory ??
aoie

, am

what is the best way to get the contents of a file directory into a list?

& Lt; TD width = "100%" & gt;
Bruno Van Dooren

,


what is the best way to get the contents of a file directory into a list?

the easiest is if you can use. net Framework. then you can use the
directoryinfo class, which can directly give you an array of contents.

with Win32 you can use the findfirstfile/findnextfile enumeration functions.

for MFC cfindfile is maybe a good solution.

--

Kind Regards,
Bruno.
bruno_nos_pam_van_dooren@hotmail.com
remove only "_ nos_pam"

adebaene@club-internet.fr

, am

aoie wrote:
what is the best way to get the contents of a file directory into a list?

findfirstfile ("*. * ")
findnextfile
findclose

and filter out ". "and ".. "entries which, most of the time, are of no
interest for you.

Arnaud
MVP-VC

adebaene@club-internet.fr

, am

aoie wrote:
what is the best way to get the contents of a file directory into a list?

findfirstfile ("*. * ")
findnextfile
findclose

and filter out ". "and ".. "entries which, most of the time, are of no
interest for you.

Arnaud
MVP-VC

James Brown [MVP]

, 7: 59 am

"aoie" wrote in message
News: du193k $6g6 $ 1@emma.aioe.org...
what is the best way to get the contents of a file directory into a list?

Take A Look At The dlgdirlist API

James

--
Microsoft MVP-Windows SDK
www.catch22.net
free Win32 source and tutorials

David D

,

aoie wrote:
what is the best way to get the contents of a file directory into a list?

for a platform independence Take A Look At boost and it's filesystem Library:
http://www.boost.org/libs/filesystem/doc/index.htm

/David

Sored links

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.