[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Using CFileFind

Posted on 1997-03-17
1
Medium Priority
?
889 Views
Last Modified: 2013-11-20
While using CFileFind in a recursive directory search for all .WAV files, it appears to skip a WAV file in my C:\WINDOWS\TEMP directory.  I'm concerned that this problem may happen other places I haven't caught yet.  I've traced through, and CFileFind::FindNextFile() simply never sees it, even if I ONLY scan C:\WINDOWS|TEMP.

Is there a known problem here or some gotcha?

Also, how do I extract the short file name (8.3) of the CFileFind results?
0
Comment
Question by:mikegar031697
[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
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 1300470
In this case, please check your hard disk with scandisk first to make sure there is no error with it. Also, copy all the files under C:\WINDOWS\TEMP to another directory and try your program again to see what happens.

You can call GetShortPathName() to get the short file name.

0

Featured Post

Industry Leaders: 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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

650 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