Click here to Skip to main content
15,910,878 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: An unexplained compiler error (C2039) Pin
Rafael Fernández López8-May-04 0:02
Rafael Fernández López8-May-04 0:02 
GeneralRe: An unexplained compiler error (C2039) Pin
Colin Angus Mackay8-May-04 0:31
Colin Angus Mackay8-May-04 0:31 
GeneralRe: An unexplained compiler error (C2039) Pin
Prakash Nadar8-May-04 22:57
Prakash Nadar8-May-04 22:57 
GeneralRe: An unexplained compiler error (C2039) Pin
Anonymous9-May-04 5:01
Anonymous9-May-04 5:01 
QuestionHow to get _DSpreadSheet's point from handle? Pin
wl@syntc.com.cn7-May-04 20:45
wl@syntc.com.cn7-May-04 20:45 
GeneralProtocol Validation Pin
Kannan Ramanathan7-May-04 20:03
Kannan Ramanathan7-May-04 20:03 
Generalrecursive directory searching Pin
Ryan McDermott7-May-04 16:12
Ryan McDermott7-May-04 16:12 
GeneralRe: recursive directory searching Pin
nguyenvhn7-May-04 17:17
nguyenvhn7-May-04 17:17 
Roll eyes | :rolleyes:
<br />
BOOL SearchFolder(CString folder)<br />
{<br />
  CFileFind finder;<br />
  //build a string with wildcards<br />
  CString strWildcard(folder);<br />
  strWildcard += _T("\\*.*");//Whatever you needed<br />
  //start searching for files<br />
  BOOL bWorking = finder.FindFile(strWildcard);<br />
  CString str;<br />
  while (bWorking){<br />
    bWorking = finder.FindNextFile();<br />
    //skip . and .. files;<br />
    if (finder.IsDots())<br />
      continue;<br />
    else if (finder.IsDirectory()){<br />
        //You have a directory<br />
	str = finder.GetFilePath();<br />
        //Do anything before<br />
        //Recursive it again <br />
	SearchFolder(str);<br />
        //Do anything after<br />
    }<br />
    else{<br />
      //You have a file<br />
      str=finder.GetFilePath();<br />
      //Process it yourself<br />
      DoingFile(str);<br />
    }<br />
  }<br />
  finder.Close();<br />
  return TRUE;<br />
}<br />

Good luck.
GeneralRe: recursive directory searching Pin
Joe Woodbury7-May-04 17:40
professionalJoe Woodbury7-May-04 17:40 
GeneralRe: recursive directory searching Pin
2249177-May-04 19:27
2249177-May-04 19:27 
GeneralRe: recursive directory searching Pin
Joe Woodbury8-May-04 8:36
professionalJoe Woodbury8-May-04 8:36 
GeneralINI File/MFC Pin
ThongNguyen7-May-04 16:07
ThongNguyen7-May-04 16:07 
GeneralRe: INI File/MFC Pin
Joe Woodbury7-May-04 17:43
professionalJoe Woodbury7-May-04 17:43 
GeneralRe: INI File/MFC Pin
Anonymous7-May-04 18:11
Anonymous7-May-04 18:11 
QuestionHow can I calculate??? help Pin
Snyp7-May-04 15:00
Snyp7-May-04 15:00 
AnswerRe: How can I calculate??? help Pin
valikac7-May-04 18:47
valikac7-May-04 18:47 
GeneralRe: How can I calculate??? help Pin
Rafael Fernández López7-May-04 23:14
Rafael Fernández López7-May-04 23:14 
GeneralRe: How can I calculate??? help Pin
Snyp8-May-04 13:04
Snyp8-May-04 13:04 
Generalwebbrowser control in dll Pin
dilip_sarangi7-May-04 14:59
sussdilip_sarangi7-May-04 14:59 
GeneralRe: webbrowser control in dll Pin
Rafael Fernández López7-May-04 23:17
Rafael Fernández López7-May-04 23:17 
GeneralHandling Minimize event Pin
Dev5787-May-04 12:55
Dev5787-May-04 12:55 
GeneralRe: Handling Minimize event Pin
Garth J Lancaster7-May-04 14:09
professionalGarth J Lancaster7-May-04 14:09 
GeneralRe: Handling Minimize event Pin
Joe Woodbury7-May-04 17:44
professionalJoe Woodbury7-May-04 17:44 
GeneralRe: Handling Minimize event Pin
nguyenvhn7-May-04 22:29
nguyenvhn7-May-04 22:29 
Generallistbox custom draw Pin
roel_7-May-04 12:46
roel_7-May-04 12:46 

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.