By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,133 Members | 1,092 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,133 IT Pros & Developers. It's quick & easy.

FindFirst/FindNext: What's wrong with this sample code?

P: 4
Greetings everybody,

I'm trying to UNDERSTAND this code.
I've already done lots and lots of debugging sessions and I can confirm that the FIND_NEXT routine is never executed.
Every file entry is found using the FindFirst procedure, which is a bit odd.

This small app was nicked from The SNIPPETS DOS archives, which is a bit broken atm but you can still download the code from the "naked" file archive.

I've tried to implement a global static variable which counts the FindFirst() calls, and it's always EQUAL to the number of total files, which is definitely odd.
I've always thought that FindFirst() is only for finding the very first file, as the name suggests.

Src archive included, 5 KB. I had to link this externally because I got an error message of this forum that the quota is exceeded!
::Zip File Link Removed - Please use code tags::
Nov 27 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.