CCeFileFind - File Finder class for Windows CE

WEBINAR: On-demand webcast

How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >

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

  • Read the ebook Hybrid Cloud & Data Fabric for Dummies to learn how a Data Fabric can ease data management complexity within a hybrid cloud and help you maximize the control of your data — from anywhere at any time. Find out how to: Seamlessly and dynamically move data across private and public cloud resources Keep data secure and minimize business disruptions …

  • Are you weighing the benefits of cloud storage versus on-premises storage? If so, the right answer might be to use both — a mix of on-premises and public cloud services with data mobility between the two platforms. Hybrid has piqued interest as more organizations look to the public cloud to augment their on-premises data management. Analyst firm IDC predicts that by 2018, 85% of enterprises will operate in a multi-cloud environment. Check out this easy-to-absorb infographic to explore five reasons to …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date