CCeFileFind - File Finder class for Windows CE

Environment: VC6 SP2, NT4 SP3, CE 2.0/2.01/2.11

Article text goes here

Class CCeFileFind performs local file searches on a Windows CE system. CCeFileFind includes member functions that begin a search, locate a file, and return the name, path or size of the file. The following code will enumerate all the files in the current directory, printing the name of each file:
CCeFileFind finder;

BOOL bWorking = finder.FindFile("*.*");

while (bWorking)
{
 bWorking = finder.FindNextFile();
 AfxMessageBox(  finder.GetFileName() );
}

After calling FindFile to begin the file search, call FindNextFile to retrieve subsequent files. You must call FindNextFile at least once before calling any of attribute member functions:

Downloads

Download demo project - 15 Kb
Download source - 3 Kb


Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: August 20, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT When you look at natural user interfaces as a developer, it isn't just fun and games. There are some very serious, real-world usage models of how things can help make the world a better place – things like Intel® RealSense™ technology. Check out this upcoming eSeminar and join the panel of experts, both from inside and outside of Intel, as they discuss how natural user interfaces will likely be getting adopted in a wide variety …

  • Savvy enterprises are discovering that the cloud holds the power to transform IT processes and support business objectives. IT departments can use the cloud to redefine the continuum of development and operations—a process that is becoming known as DevOps. Download the Executive Brief DevOps: Why IT Operations Managers Should Care About the Cloud—prepared by Frost & Sullivan and sponsored by IBM—to learn how IBM SmartCloud Application services provide a robust platform that streamlines …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds