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

C / C++ / MFC

 
Questionmerge proxy/stub code in ATL server Pin
George_George5-Aug-08 23:46
George_George5-Aug-08 23:46 
QuestionRe: merge proxy/stub code in ATL server Pin
led mike6-Aug-08 4:32
led mike6-Aug-08 4:32 
AnswerRe: merge proxy/stub code in ATL server Pin
George_George6-Aug-08 19:40
George_George6-Aug-08 19:40 
GeneralRe: merge proxy/stub code in ATL server Pin
led mike7-Aug-08 7:13
led mike7-Aug-08 7:13 
GeneralRe: merge proxy/stub code in ATL server Pin
George_George8-Aug-08 23:30
George_George8-Aug-08 23:30 
QuestionHow to loop through a directory Pin
santhoshv845-Aug-08 23:40
santhoshv845-Aug-08 23:40 
AnswerRe: How to loop through a directory Pin
_AnsHUMAN_ 6-Aug-08 0:02
_AnsHUMAN_ 6-Aug-08 0:02 
AnswerRe: How to loop through a directory Pin
Sarath C6-Aug-08 0:06
Sarath C6-Aug-08 0:06 
See the sample from MSDN. Hope you can use MFC

void Recurse(LPCTSTR pstr)
{
   CFileFind finder;

   // build a string with wildcards
   CString strWildcard(pstr);
   strWildcard += _T("\\*.*");

   // start working for files
   BOOL bWorking = finder.FindFile(strWildcard);

   while (bWorking)
   {
      bWorking = finder.FindNextFile();

      // skip . and .. files; otherwise, we'd
      // recur infinitely!

      if (finder.IsDots())
         continue;

      // if it's a directory, recursively search it

      if (finder.IsDirectory())
      {
         CString str = finder.GetFilePath();
         TRACE(_T("%s\n"), (LPCTSTR)str);
         Recurse(str);
      }
   }

   finder.Close();
}

void PrintDirs()
{
   Recurse(_T("C:\\JPG"));
}


-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin

GeneralRe: How to loop through a directory Pin
Sarath C6-Aug-08 0:10
Sarath C6-Aug-08 0:10 
AnswerRe: How to loop through a directory Pin
Jijo.Raj6-Aug-08 0:09
Jijo.Raj6-Aug-08 0:09 
JokeRe: How to loop through a directory [modified] Pin
SandipG 6-Aug-08 0:11
SandipG 6-Aug-08 0:11 
JokeRe: How to loop through a directory Pin
Jijo.Raj6-Aug-08 0:14
Jijo.Raj6-Aug-08 0:14 
GeneralRe: How to loop through a directory Pin
Jijo.Raj6-Aug-08 1:01
Jijo.Raj6-Aug-08 1:01 
QuestionRe: How to loop through a directory Pin
David Crow6-Aug-08 7:20
David Crow6-Aug-08 7:20 
QuestionCreateFile OPEN_EXISTING problem in Vista Pin
NiceNaidu5-Aug-08 23:37
NiceNaidu5-Aug-08 23:37 
AnswerRe: CreateFile OPEN_EXISTING problem in Vista Pin
SandipG 6-Aug-08 0:03
SandipG 6-Aug-08 0:03 
AnswerRe: CreateFile OPEN_EXISTING problem in Vista Pin
_AnsHUMAN_ 6-Aug-08 0:04
_AnsHUMAN_ 6-Aug-08 0:04 
GeneralRe: CreateFile OPEN_EXISTING problem in Vista Pin
NiceNaidu6-Aug-08 0:12
NiceNaidu6-Aug-08 0:12 
GeneralRe: CreateFile OPEN_EXISTING problem in Vista [modified] Pin
SandipG 6-Aug-08 0:35
SandipG 6-Aug-08 0:35 
GeneralRe: CreateFile OPEN_EXISTING problem in Vista Pin
NiceNaidu6-Aug-08 0:41
NiceNaidu6-Aug-08 0:41 
GeneralRe: CreateFile OPEN_EXISTING problem in Vista Pin
SandipG 6-Aug-08 0:43
SandipG 6-Aug-08 0:43 
GeneralRe: CreateFile OPEN_EXISTING problem in Vista Pin
NiceNaidu6-Aug-08 0:49
NiceNaidu6-Aug-08 0:49 
GeneralRe: CreateFile OPEN_EXISTING problem in Vista Pin
SandipG 6-Aug-08 0:50
SandipG 6-Aug-08 0:50 
AnswerRe: CreateFile OPEN_EXISTING problem in Vista Pin
ShilpiP6-Aug-08 0:52
ShilpiP6-Aug-08 0:52 
GeneralRe: CreateFile OPEN_EXISTING problem in Vista Pin
NiceNaidu6-Aug-08 1:54
NiceNaidu6-Aug-08 1:54 

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.