while (bWorking){bWorking=Finder.FindNextFile();if (Finder.IsDirectory()&&!Finder.IsDots()){BrowseDir(Finder.GetFilePath());}else if (!Finder.IsDirectory()&&!Finder.IsDots()){CStatic* p = (CStatic*)GetDlgItem(IDC_STATIC_FILE);Insert(Finder.GetFilePath());CString PathName;PathName.Format("當前訪問的文件:%s",Finder.GetFilePath());p->SetWindowText(PathName);delete p; //這行有問題}我的程序是這樣的,把delete p去掉,程序能運行,但是到后面會內存不足;加上delete p又運行不起來,應該怎么改?
- 2 回答
- 0 關注
- 104 瀏覽
添加回答
舉報
0/150
提交
取消