I have searched everything , but no source codes i found work with VS C++ 2008,
Do you have any way to find list of files in a directory programmatically?
I am u
This shall find the list of files in C: drive, It doesn't use dirent.h just simple file handling api's,
FindFirstFile & FindNextFile
#include
int main(int argc, char* argv[])
{
WIN32_FIND_DATA search_data;
memset(&search_data, 0, sizeof(WIN32_FIND_DATA));
HANDLE handle = FindFirstFile("c:\\*", &search_data);
while(handle != INVALID_HANDLE_VALUE)
{
cout<<"\n"<
You should have a look at the standard api's on the msdn website.