void CTestDlg::getVideoname() //无
{
CString path = _T("..\\")+m_mappath+_T("\\*.avi");
CFileFind finder;
BOOL bExist = finder.FindFile(path); HTREEITEM hItem,hSubItem,hFirstItem;
hItem = m_treemap.InsertItem(_T("目录")+m_mappath+_T("影像"),0,0);
m_numberofvideo = 0; while(bExist)
{
bExist = finder.FindNextFileW();
mapname[m_numberofvideo] = finder.GetFileName();
hSubItem = m_treemap.InsertItem (finder.GetFileName(),hItem,0);
if(m_numberofvideo == 0)
{
hFirstItem = hSubItem;
}
m_numberofvideo++;
} m_treemap.Expand(hItem,TVE_EXPAND);
m_treemap.SelectItem(hFirstItem);
m_path = _T("..\\")+m_mappath+_T("\\")+m_treemap.GetItemText(hFirstItem);}
要读取同文件夹下的video文件夹里面的video,为什么每次运行的结果都不一样啊 ,求大牛们解释下
{
CString path = _T("..\\")+m_mappath+_T("\\*.avi");
CFileFind finder;
BOOL bExist = finder.FindFile(path); HTREEITEM hItem,hSubItem,hFirstItem;
hItem = m_treemap.InsertItem(_T("目录")+m_mappath+_T("影像"),0,0);
m_numberofvideo = 0; while(bExist)
{
bExist = finder.FindNextFileW();
mapname[m_numberofvideo] = finder.GetFileName();
hSubItem = m_treemap.InsertItem (finder.GetFileName(),hItem,0);
if(m_numberofvideo == 0)
{
hFirstItem = hSubItem;
}
m_numberofvideo++;
} m_treemap.Expand(hItem,TVE_EXPAND);
m_treemap.SelectItem(hFirstItem);
m_path = _T("..\\")+m_mappath+_T("\\")+m_treemap.GetItemText(hFirstItem);}
要读取同文件夹下的video文件夹里面的video,为什么每次运行的结果都不一样啊 ,求大牛们解释下
解决方案 »
- 调用DLL//函数指针类型的CEditEx*无法转化成&CWnd呀???
- vc添加ocx控件
- 菜鸟求教2
- 急求:视图类的优化问题
- 各位帮我看看关于串行化和并行化的问题,谢谢啦!
- 交流一下VC60技术内幕第五版,散点分
- 征集路由器的上限算法,c语言客户服务器矩阵算法
- 我定义了三个类A,B,C,在A类中定义了几个数组,用来保存数据,然后再B类中定义了一个A的对象,将B中要处理的数据保存在A中,我想在C中取得
- server 端 IOCP 模型下 如何才能保证wsasend 的数据准确发送 ?
- 众位热心肠的大哥就就我,会的捧个程序场,不会的捧个人场,up就有分,关于SCSI接口的
- 赋值语句执行结果出错是什么原因
- 位图转换
{
CString path = _T("..\\")+m_mappath+_T("\\*.avi");
CFileFind finder;
BOOL bExist = finder.FindFile(path); HTREEITEM hItem,hSubItem,hFirstItem;
hItem = m_treemap.InsertItem(_T("目录")+m_mappath+_T("影像"),0,0);
m_numberofvideo = 0; while(bExist)
{
bExist = finder.FindNextFileW();
mapname[m_numberofvideo] = finder.GetFileName();
hSubItem = m_treemap.InsertItem (finder.GetFileName(),hItem,0);
if(m_numberofvideo == 0)
{
hFirstItem = hSubItem;
}
m_numberofvideo++;
} m_treemap.Expand(hItem,TVE_EXPAND);
m_treemap.SelectItem(hFirstItem);
m_path = _T("..\\")+m_mappath+_T("\\")+m_treemap.GetItemText(hFirstItem);}
您好,
由于您长时间不结贴,上一次答复已超一个月。
目前暂无最佳答案,本人帮你顶贴。
另外可以放在本版的疑难杂症帖链接:
http://bbs.csdn.net/topics/390351579。
如果您有什么意见,请您联系我。