Click here to Skip to main content
15,905,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDetected memory leaks..Did I solve it ? Pin
Hesham Amin3-Aug-03 5:03
Hesham Amin3-Aug-03 5:03 
AnswerRe: Detected memory leaks..Did I solve it ? Pin
John R. Shaw3-Aug-03 9:55
John R. Shaw3-Aug-03 9:55 
GeneralWndProc Within a class Pin
M.Mostafa3-Aug-03 1:16
M.Mostafa3-Aug-03 1:16 
GeneralRe: WndProc Within a class Pin
S O S3-Aug-03 3:15
S O S3-Aug-03 3:15 
GeneralRe: WndProc Within a class Pin
John R. Shaw3-Aug-03 10:05
John R. Shaw3-Aug-03 10:05 
Generalgetting files and directory. Pin
Anonymous3-Aug-03 0:40
Anonymous3-Aug-03 0:40 
GeneralRe: getting files and directory. Pin
HPSI3-Aug-03 0:54
HPSI3-Aug-03 0:54 
GeneralRe: getting files and directory. Pin
Bob Stanneveld3-Aug-03 7:49
Bob Stanneveld3-Aug-03 7:49 
Hello,

You should use the CFileFind class to do the searching! Use the FindFile() method to start the search and use FindNextFile to retreive data.

exemple:
CFileFind ff;
CList<CString, CString&> dirlist;
dirlist.AddTail(_T("YourMp3Directory"));

do
{
    if(ff.FindFile(dirlist.RemoveTail()))
    {
        while(ff.FindNextFile())
        {
            if(ff.IsDirectory())
            {
                if(!ff.IsDots())
                    dirlist.AddTail(ff.GetFilePath());
            }
            else
            {
                // It's a Mp3! process the data here
            }
        }
        // process the last file that was found
    }
}while(dirlist.GetCount() > 0);


hope this helps Smile | :)
Questionhow to get the other window's scrollbar handle ? Pin
yoyo2-Aug-03 23:22
yoyo2-Aug-03 23:22 
AnswerRe: how to get the other window's scrollbar handle ? Pin
HPSI3-Aug-03 1:25
HPSI3-Aug-03 1:25 
GeneralRe: how to get the other window's scrollbar handle ? Pin
yoyo3-Aug-03 16:56
yoyo3-Aug-03 16:56 
Generalhey guys..new bie here Pin
virtualspy2-Aug-03 22:46
virtualspy2-Aug-03 22:46 
GeneralRe: hey guys..new bie here Pin
Rein Hillmann2-Aug-03 23:02
Rein Hillmann2-Aug-03 23:02 
GeneralRe: hey guys..new bie here Pin
virtualspy3-Aug-03 1:48
virtualspy3-Aug-03 1:48 
GeneralRe: hey guys..new bie here Pin
vcplusplus3-Aug-03 4:30
vcplusplus3-Aug-03 4:30 
GeneralRe: hey guys..new bie here Pin
Rein Hillmann3-Aug-03 7:17
Rein Hillmann3-Aug-03 7:17 
Generalchtmlview and disk drive questions Pin
pdunn2-Aug-03 18:39
pdunn2-Aug-03 18:39 
GeneralRe: chtmlview and disk drive questions Pin
Cathy2-Aug-03 23:23
Cathy2-Aug-03 23:23 
GeneralDVD Files / Burning Pin
Mike_V2-Aug-03 17:04
Mike_V2-Aug-03 17:04 
GeneralRe: DVD Files / Burning Pin
J. Dunlap2-Aug-03 19:22
J. Dunlap2-Aug-03 19:22 
GeneralRe: DVD Files / Burning Pin
Mike_V3-Aug-03 4:54
Mike_V3-Aug-03 4:54 
Questionhow to add tooltip for the CListctrl's Item? Pin
allenhu2-Aug-03 16:40
allenhu2-Aug-03 16:40 
AnswerRe: how to add tooltip for the CListctrl's Item? Pin
HPSI2-Aug-03 19:17
HPSI2-Aug-03 19:17 
Generalkeyboard constants Pin
Marissa1822-Aug-03 16:23
Marissa1822-Aug-03 16:23 
GeneralRe: keyboard constants Pin
PJ Arends2-Aug-03 18:28
professionalPJ Arends2-Aug-03 18:28 

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.