Click here to Skip to main content
15,888,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRecursive CFileFind problem [modified] Pin
Mr_Gbg3-Mar-11 6:43
Mr_Gbg3-Mar-11 6:43 
AnswerRe: Recursive CFileFind problem Pin
Frank Seidler3-Mar-11 7:30
Frank Seidler3-Mar-11 7:30 
QuestionRe: Recursive CFileFind problem Pin
David Crow3-Mar-11 8:07
David Crow3-Mar-11 8:07 
AnswerRe: Recursive CFileFind problem Pin
Luc Pattyn3-Mar-11 8:47
sitebuilderLuc Pattyn3-Mar-11 8:47 
GeneralRe: Recursive CFileFind problem Pin
David Crow3-Mar-11 9:08
David Crow3-Mar-11 9:08 
GeneralRe: Recursive CFileFind problem Pin
Luc Pattyn3-Mar-11 9:18
sitebuilderLuc Pattyn3-Mar-11 9:18 
GeneralRe: Recursive CFileFind problem Pin
Mr_Gbg3-Mar-11 21:57
Mr_Gbg3-Mar-11 21:57 
QuestionRe: Recursive CFileFind problem Pin
David Crow3-Mar-11 8:05
David Crow3-Mar-11 8:05 
Mr_Gbg wrote:
The code below is supposed to return 13.301 files for my image library...

According to what?

Mr_Gbg wrote:
strDir +=+ _T("\\*");

What is +=+?

Mr_Gbg wrote:

if(f.FindFile(LPCTSTR(strDir)))

Why the superfluous cast?

Mr_Gbg wrote:
The code below is supposed to return 13.301 files for my image library, but
comes with 12.110... Can anybody see what my mistake is??[Rose]


To make sure your recursion logic is sound, you might try moving count outside of CountFiles(), either by making it global or a member variable.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather


AnswerRe: Recursive CFileFind problem Pin
Mr_Gbg3-Mar-11 9:39
Mr_Gbg3-Mar-11 9:39 
AnswerRe: Recursive CFileFind problem Pin
Luc Pattyn3-Mar-11 9:32
sitebuilderLuc Pattyn3-Mar-11 9:32 
QuestionMaking the Disk Defragmenter a Modal dialog Pin
dipuks3-Mar-11 6:17
dipuks3-Mar-11 6:17 
AnswerRe: Making the Disk Defragmenter a Modal dialog Pin
Chris Meech3-Mar-11 6:39
Chris Meech3-Mar-11 6:39 
AnswerRe: Making the Disk Defragmenter a Modal dialog Pin
Luc Pattyn3-Mar-11 7:37
sitebuilderLuc Pattyn3-Mar-11 7:37 
QuestionMac and IP address problem Pin
trioum3-Mar-11 5:14
trioum3-Mar-11 5:14 
QuestionRe: Mac and IP address problem Pin
David Crow3-Mar-11 5:33
David Crow3-Mar-11 5:33 
AnswerRe: Mac and IP address problem Pin
trioum3-Mar-11 6:11
trioum3-Mar-11 6:11 
QuestionRe: Mac and IP address problem Pin
David Crow3-Mar-11 7:25
David Crow3-Mar-11 7:25 
QuestionHow to calculate to get new pixel color by mixing the alpha value with r, g and b value Pin
Amrit Agr2-Mar-11 22:40
Amrit Agr2-Mar-11 22:40 
AnswerRe: How to calculate to get new pixel color by mixing the alpha value with r, g and b value Pin
Richard MacCutchan3-Mar-11 2:08
mveRichard MacCutchan3-Mar-11 2:08 
AnswerRe: How to calculate to get new pixel color by mixing the alpha value with r, g and b value Pin
Andrew Brock3-Mar-11 2:31
Andrew Brock3-Mar-11 2:31 
GeneralRe: How to calculate to get new pixel color by mixing the alpha value with r, g and b value Pin
Amrit Agr3-Mar-11 16:59
Amrit Agr3-Mar-11 16:59 
QuestionUnicode Representation and Transformation Pin
pix_programmer2-Mar-11 21:48
pix_programmer2-Mar-11 21:48 
AnswerRe: Unicode Representation and Transformation Pin
Richard MacCutchan2-Mar-11 23:03
mveRichard MacCutchan2-Mar-11 23:03 
GeneralRe: Unicode Representation and Transformation Pin
pix_programmer3-Mar-11 0:21
pix_programmer3-Mar-11 0:21 
GeneralRe: Unicode Representation and Transformation Pin
CPallini3-Mar-11 1:51
mveCPallini3-Mar-11 1:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.