码迷,mamicode.com
首页 > 其他好文 > 详细

CFileFind

时间:2017-08-16 19:11:20      阅读:85      评论:0      收藏:0      [点我收藏+]

标签:head   pos   box   style   rar   res   osi   ext   bsp   

##

    CStringList library;
    CFileFind file;
    bool result=file.FindFile("C:\\*.jpg");
    while(result)
    {
        result= file.FindNextFile();
        //library.AddTail(file.GetFilePath());
        CString szfilename=file.GetFilePath(); //全路径
        library.AddTail(szfilename);
    }    

    CString name;
    POSITION rPos;

    rPos = library.GetHeadPosition();

    while (rPos != NULL)
    {
        name = library.GetNext(rPos);
        MessageBox(name.GetBuffer(50));
    }

 

CFileFind

标签:head   pos   box   style   rar   res   osi   ext   bsp   

原文地址:http://www.cnblogs.com/tinaluo/p/7374930.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!