Solved

listing files

Posted on 2000-04-06
2
200 Views
Last Modified: 2013-11-20
How do you get a directory listing in MFC?
0
Comment
Question by:hotwheels
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Expert Comment

by:VinExpert
ID: 2692112
Hi,

Where U want to get?. There are some controls like CComboBox where in they have their own function like Dir(), which will fill them with directory structure. Or else U can try using IShellFolder.

About how  to use IShellFolder, search in codeguru for explorer.

Try it out.
VinExpert
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 50 total points
ID: 2692130
Use CFileFind to get the files in a directory one at a time.

Then stick the filse into a list box or list control or whatever.

Listboxes do support a Dir command, but that only gives you short (8.3) files names.


0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question