我就这样,为什么会出警告信息呀?CFileFind find;
find.Find("C:\\*.*");
if(find.IsDots())
  ....

解决方案 »

  1.   

    BOOL b = find.FindFile("C:\\*.*");
    while(b)
    {
    find.IsDots()
      ....
    }
      

  2.   

    CFileFind 有木有Find这每个成员函数的啊??木有的
      

  3.   

    哦,我写错了,我是象 smileconfess() 写的
    但不知为什么总出警告
      

  4.   

    BOOL bRet = finder.FindFile(strWildcard);   while (bWorking)
       {
          bRet = finder.FindNextFile();
                    .
                    .
                    .
       }
      

  5.   

    错了,,应该是:
    BOOL bRet = finder.FindFile(strWildcard);   while (bRet)
       {
          bRet = finder.FindNextFile();
                    .
                    .
                    .
       }
      

  6.   

    这个一定要加上FindNextFile(),在FindFile()之后
      

  7.   

    标准用法:   BOOL bRet = finder.FindFile("C:\\*.txt");   while (bRet)
       {
          bRet = finder.FindNextFile();
          if ( finder.IsDots() )
          {
              ....
          }
          else
          if ( finder.IsDirectory() )
          {
              ....
          }
          else
          {
              // then find a file
              ....
          }
       }