hi,
i've tried your program and its working fine..i've tried counting the number of text files the program finds in the directory and it returns the correct number even if there are jpg files.
perhaps, you could try this for your while statement:
while (FindNextFile(hFindTxt,&fd) != 0)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.