Solved

listing files

Posted on 2000-04-06
2
156 Views
Last Modified: 2013-11-20
How do you get a directory listing in MFC?
0
Comment
Question by:hotwheels
2 Comments
 
LVL 8

Expert Comment

by:VinExpert
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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 …
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now