我得到了一个参数,想查找在某个文件夹里同名的文件。也就是输入一个文件名,通过查找并得到该文件的路径名,该用什么函数,能不能给个例子,简单点的例子。谢谢各位的帮助
解决方案 »
- 求大侠帮帮忙:vc中实现运动轨迹问题
- 关于CMultiDocTemplate的问题???
- photoshop的浮动工具条和其他的浮动框是怎么做的?
- 一个小小的CString--快要崩溃了,谁来救救我?!(80分)
- ★★★!!!!!!!!!!!!!!!!!!想上Google的来看!!!!!!!!!!!!!!!!!!!!!★★★
- 用VC的困惑
- 当用CDialogBar装入一个Dialog时,Dialog最开始处理的是哪个函数???
- 如何学好 VC呢,VC++ 6.0 和VC.NET有什么区别呢
- 学习C++程序员的发展
- Debug 提示内存不足,求大神指教
- 用MessageBox弹出的对话框为何显示在屏幕的左上角?
- 高人請進,關於MFC內部SubClassWindow的問題
BOOL SearchTreeForFile(
PSTR RootPath,
PSTR InputPathName,
PSTR OutputPathBuffer
);Parameters
RootPath
[in] Pointer to a null-terminated string that specifies the path where the function should begin searching for the file.
InputPathName
[in] Pointer to a null-terminated string that specifies the file for which the function will search. You can use a partial path.
OutputPathBuffer
[out] Pointer to a buffer that receives the full path to the file that is found. This string is not modified if the return value is FALSE.
Requirements
Client: Included in Windows XP, Windows 2000 Professional.
Server: Included in Windows .NET Server 2003, Windows 2000 Server.
Redistributable: Requires DbgHelp.dll on Windows NT 4.0 and Windows 95/98/Me.
Header: Declared in Dbghelp.h.
Library: Use Dbghelp.lib.