rt
解决方案 »
- SDK里边,MFC的类不能使用吗???
- 求教! PacketGetAdapterNames(AdapterName,&AdapterLength) 获取网卡名字问题!
- vs2008无法启动,如何解决?
- 如何隐藏CView视图的边框?(有源码下载)
- CStatic::SetBitmap( HBITMAP hBitmap );40分快点帮下吧,在线等。
- 串口通信问题
- 请教mfc单文档问题
- <<Inside ATL>> 的中文版CHM格式教程谁有??
- MFC网络编程求助
- 关于.cpl(.dll)程序的编译问题.急急急!
- 问题:多文档应用程序下次打开时恢复上次的环境
- 如何把Unicode 字符串转化成ansi字符串
lstrcpy(dei.szDir, dei.szFile);
*_tcsrchr(dei.szDir, __TEXT('\\')) = 0;
virtual CString GetRoot( ) const;Return ValueThe root of the active search.ResCall this member function to get the root of the found file. You must call FindNextFile at least once before calling GetRoot.This member function returns the drive specifier and path name used to start a search. For example, calling FindFile with *.dat results in GetRoot returning an empty string. Passing a path, such as c:\windows\system\*.dll, to FindFile results GetRoot returning c:\windows\system\.
就是说如果strFile是全路径的话
CFileFind fi;
fi.FindFile(fi);
fi.FindNextFile();
CString strPath = fi.GetRoot();那么strPath就是strFile的路径了