VC编程改错
void CDirListCtrl::SetFolder(CString sFile)//函数的实现
{
int index;
if (sFile == "")
return ;
CDirListCtrl m_SysImageList;
m_strPath = sFile;
CImageList * imageList = m_SysImageList.GetImageList( FALSE );
SetImageList(imageList, LVSIL_NORMAL);
CFileFind finder;
int bWorking = finder.FindFile(sFile+"*.*");
if( bWorking )
{
DeleteAllItems();
}
else return;
while( bWorking )
{
bWorking = finder.FindNextFile();
if(!finder.IsDots())
{
HICON icon = m_SysImageList.GetIcon(sFile+finder.GetFileName(), FALSE,FALSE);
index = imageList->Add(icon);
InsertItem( 1, sFile+finder.GetFileName(), index );
}
}
}
065: 'm_strPath' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\新建文件夹\MyExplorer\DirListCtrl.cpp(48) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class CString' (or there is no acceptable conversion)
C:\Documents and Settings\Administrator\桌面\新建文件夹\MyExplorer\DirListCtrl.cpp(67) : error C2660: 'GetIcon' : function does not take 3 parameters
C:\Documents and Settings\Administrator\桌面\新建文件夹\MyExplorer\DirListCtrl.cpp(104) : error C2065: 'strSrcPath' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\新建文件夹\MyExplorer\DirListCtrl.cpp(104) : error C2065: 'strSelItemPath' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\新建文件夹\MyExplorer\DirListCtrl.cpp(105) : error C2065: 'strDesPath' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\新建文件夹\MyExplorer\DirListCtrl.cpp(106) : error C2065: 'nOption' : undeclared identifier
DirTreeCtrl.cpp