This is because dirent.h doesn't come with VC6.
Only following compiler knows dirent.h
Turbo C++ (DOS)
GCC (Cross-platform)
MinGW (Microsoft Windows)
Borland C++ Builder (Microsoft Windows)
You can download dirent.h to use in VC6, following is the link which may help you
http://www.softagalleria.net/dirent.php[
^]