Hi,
I'm using WinInet to connect to an FTP server and have sort of like a File -> Open type of application. Once it's connected, it reads in the list of folders in that directory, the user selects one and the program should open that one ad present all the folders in it. When I'm reading all the directories in, how do I check if it's a file or a directory? Because if it's a file I want to put it in a different list.
Something like this:thanks.Code:BOOL bWorking = finder.FindFile(_T("*")); while (bWorking) { bWorking = finder.FindNextFile(); fname = finder.GetFilePath(); if(a directory) pListMain->AddString(fname); else pListSub->AddString(fname); }