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

  • Microsoft Azure® is a leading choice for businesses looking to take advantage of the cloud. Azure is particularly appealing to businesses that have already invested in Microsoft on-premises and are now considering running these applications and other workloads in the cloud. To understand how to make this move to Azure, many businesses are turning to managed service providers (MSPs) with specific Azure expertise. Read this white paper to learn the eight key areas to focus on when considering an MSP for an …

  • This case study will highlight the opportunity for mobile and cloud technologies in the Public Sector—specifically for state, local and federal government agencies -where secure mobile application access can offer key productivity gains

Most Popular Programming Stories

More for Developers

RSS Feeds

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