I made a small sample program. This searches the current directory (where the EXE-file is) for bitmaps.
If you want to search through a sub directory, change findfirst("*.bmp", &Holder, 0); to findfirst("Subdir/*.bmp", &Holder, 0);
Code:
#include <dir.h>
#include <iostream.h>
#include <conio.h>
int main()
{
struct ffblk Holder;
int Status;
int i=0;
//Search for bitmaps and print them out
Status=findfirst("*.bmp", &Holder, 0);
while(!Status)
{
cout << Holder.ff_name << endl;
Status=findnext(&Holder);
i++;
//Print one page at a time
if(i%25==0) getch();
}
getch();
//Exit
return 0;
}