//---------------------------------------------------------------------------

#include <windows.h>
#pragma hdrstop
#include "class_scandir.hpp"
#include <iostream>
//---------------------------------------------------------------------------

#pragma argsused
WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
list<string>  temp;
ScanDir a;

    a.setPfad("t:\\");
    a.scan("*.*");
    temp = a.getFiles();

list<string>::iterator pos;
    for(pos = temp.begin();pos != temp.end();pos++)
        cout<<*pos<<endl;

    temp = a.getDirectory();

    for(pos = temp.begin();pos != temp.end();pos++)
        cout<<*pos<<endl;

    return 0;
}
//---------------------------------------------------------------------------
 
