Hallo - there is a folder called D:\Downloads\Files, and in this folder are several subfolders and a number of files.
The following code, with attrib as FA_DIREC, should only show the names of the subfolders, but I keep getting the files as well.
ffblk ffblk;
int result=findfirst("D:\\Downloads\\Files\\*",ffblk,FA_DIREC);
while(result==0){
ShowMessage(ffblk.ff_name);
result=findnext(ffblk.ff_name);
}
Does anybody know why?
Cheers,
Douglas JL Common sense is what tells you the world is flat.
The following code, with attrib as FA_DIREC, should only show the names of the subfolders, but I keep getting the files as well.
ffblk ffblk;
int result=findfirst("D:\\Downloads\\Files\\*",ffblk,FA_DIREC);
while(result==0){
ShowMessage(ffblk.ff_name);
result=findnext(ffblk.ff_name);
}
Does anybody know why?
Cheers,
Douglas JL Common sense is what tells you the world is flat.