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

C / C++ / MFC

 
QuestionAdding a static library build Pin
softwaremonkey3-Mar-11 11:39
softwaremonkey3-Mar-11 11:39 
AnswerRe: Adding a static library build Pin
Andrew Brock3-Mar-11 16:06
Andrew Brock3-Mar-11 16:06 
GeneralRe: Adding a static library build Pin
softwaremonkey3-Mar-11 19:44
softwaremonkey3-Mar-11 19:44 
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 
I've always coded my recursive CFileFind code as follows:

void ProcessFolder( LPCTSTR lpszPath )
{
    CString strPath(lpszPath);
    CFileFind fileFind;
  
    if (strPath.Right(1) != _T('\\'))
        strPath += _T('\\');
  
    BOOL bFound = fileFind.FindFile(strPath + _T("*.*"));
    while (bFound)
    {
        bFound = fileFind.FindNextFile();
  	
        if (fileFind.IsDirectory())
        {
            if (! fileFind.IsDots())
                ProcessFolder(fileFind.GetFilePath());
        }
	else
        {
            // file
        }
    }
}
It's worked for years like that.

"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


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 
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 

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.